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 trialpgmd
6,897 PointsPixel 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
James Anwyl
Full Stack JavaScript Techdegree Graduate 49,960 PointsYou'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!
Emilio Queiroz
3,710 Pointsh2 a { font-size: 0.778em; }
This site can help you in the future: http://pxtoem.com/
pgmd
6,897 PointsThanks!!! Can't beleive I missed that. be well!