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

CSS CSS Basics (2014) Understanding Values and Units Rem Units

It describes a rem unit as relative only to the root element on the page. Does this mean it is always relative to 16px?

Was just a little confused on this one part. Would appreciate any insight!

16 px is the default but you can change the root font-size like this:

html { font-size: 62.5%; }

1 Answer

Hi Nideh, it depends on the base-font-size every browser has. 16px is a common one for nearly every browser. Just check Google Chrome Preferences for example. Further more it is defined as root em, which in this case always sticks to the defined root element, so to speak the html-element or tag.