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

Relative Length Units

For some reason I am having trouble understanding this...

Select the link with the class 'more'. Using the rem unit, set its font size back to the base font size of the root html element.

8 Answers

James Barnett
James Barnett
39,199 Points

@Jake -

Here's a great article on ems and root ems

Here's a good article on viewport-sized typography

.more {1rem;}

Stupid error on my part too...was missing the '.' :)

Snap lol I know it's silly, but out of everything, that one stomped me... although it was soo easy! lol Thanks Mansoor!

Its not silly REM can be a tricky subject im glad I can help :)

Once you get REM units down, I recommend looking into viewport units; Treehouse's blog has a good write-up about them.

Make sure you provide a px fallback using REM, viewport units, or both. This can be easily done by creating custom functions called mix-ins with CSS preprocessors such as SASS or LESS.

Yeah, REM isn't so bad after all... It's only now since joining treehouse this morning that I actually realized the benefits of using REM units, and I am keen on viewport units.

Going to check it out later today, Thanks Kevin!

Thanks James! Great help! :)

Hi All,

I have some issues as well to understand the relative length units. I do believe the video goes over the concepts just that little too fast without going far enough to let the student understand the concept. I have replayed the video so many times now, but it just doesn't help me.

Thanks.