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 trialTracy Excell
2,068 PointsRelative units rem
Hello, can anyone please explain the rem unit a bit more to me, as I am stuck on a challenge question Q3 in CSS units. My understanding is 1 rem= html font setting, (unless specified) which is 16px? would that mean 1 rem = 16px?
2 Answers
Kevin Korte
28,149 PointsYou've got it. Check this article out. http://snook.ca/archives/html_and_css/font-size-with-rem
Tracy Excell
2,068 PointsThanks for your help, much appreciated.
Tracy Excell
2,068 PointsTracy Excell
2,068 PointsThank you, therefore should, for example;
p{ font-size:1.0rem; } turn the font back to the original html px size, when there is no particular size given on the html doc?
Paul Graham
1,396 PointsPaul Graham
1,396 PointsYes, that's correct Tracy. It will reset it to the most basic style available. If it's not set that's 16px at the browser level.