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 trial


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.