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

angel moreta
angel moreta
2,912 Points

quetion

can i stick with just pixel and percentage units ?

i mean i like taking my knowledge even further but is it really necessary memorize all of these units?

grant Mitchell
grant Mitchell
6,919 Points

like rem or em and vh. well some of them are important to grasp, it really depends on what you want to make, so yes in a way they could be useful, there is a reason they made them?

1 Answer

Thomas Chappel
Thomas Chappel
6,342 Points

You have to be familiar with almost all the relative length units % em and rem. As you progress, you will understand that those are essential for building responsive websites and even for having responsive smaller components of your page, like navbars etc. Bootstrap makes massive use of rem. Don't give up and try to learn them a little per time. By the way...I forgot to mention calc()...which is a life-saviour. Don't forget to add that to your tools.

Best