Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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!