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.


Relative 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

Thank 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?

Yes, 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.

Thanks for your help, much appreciated.