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 trialDomnick Knowlton
1,904 PointsMay you please help me with this code challenge?
I need help with this code challenge I can't figure out number 1 2 or 3 please help.
http://teamtreehouse.com/library/css-foundations/values-and-units/relative-length-units
1 Answer
Jeffrey Rohrer
10,380 PointsAn em is equivalent to the base font size of the entire document. So if the base font size is 16px then 1em = 16px.
The base font size is 16px and they want you to set h1 = 40px using ems. So 40/16= ?. Then set that to your font size for h1 in your style.css.
Same as number 1 but they want you to change p to be equal to 24px. So 24/16= ?em.
rem stands for root em. So if they want you to set the main class to the root em, font-size: 1rem.
Domnick Knowlton
1,904 PointsDomnick Knowlton
1,904 PointsThank you.