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 trialJake Duncan
2,969 PointsRelative 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
39,199 Points@Jake -
Here's a great article on ems and root ems
Here's a good article on viewport-sized typography
Mansoor Bahramand
4,872 Points.more {1rem;}
Jennifer Fry
9,855 PointsStupid error on my part too...was missing the '.' :)
Jake Duncan
2,969 PointsSnap lol I know it's silly, but out of everything, that one stomped me... although it was soo easy! lol Thanks Mansoor!
Mansoor Bahramand
4,872 PointsIts not silly REM can be a tricky subject im glad I can help :)
Kevin Lozandier
Courses Plus Student 53,747 PointsOnce 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.
Jake Duncan
2,969 PointsYeah, 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!
Jake Duncan
2,969 PointsThanks James! Great help! :)
Johanne Trippas
7,367 PointsHi 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.