Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML Build a Responsive Website Introduction to Responsive Web Design Converting Nested PX to EMs

Pixel to em

Now, using an H2 with a font size of 18px as your context, convert the size of the link inside the H2 from 14px to ems.

Sysyem says I am wrong??? I did:
h2 { font-size: 18px; } h2 a { font-size: 0.7777777777777778; }

3 Answers

You've done the right calculation but you forgot to add em to the h2 a font-size. For example

h2 {
font-size: 18px;
}

h2 a {
font-size: 0.7777777777777778em;
}

Hope this helps!

h2 a { font-size: 0.778em; }

This site can help you in the future: http://pxtoem.com/

Thanks!!! Can't beleive I missed that. be well!