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 Foundations Values and Units Relative Length Units

Jon Sanchez
Jon Sanchez
6,625 Points

rem unit help!

I'm having a little bit of trouble resizing the .more a class back to the html size! Any help? ):

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.

html {font-size: 1em; }
h1 {font-size: 2.5em; }
p {font-size: 1.5em;}
.more a { font-size: .4rem; }

2 Answers

REM (Relative Em) is the base unit size for the document so the code below will pass.

    a.more { font-size: 1rem; } // Notice you also had the wrong selector see below.

You were selecting all "a" inside the class more, rather than the above "a" with the class more

Hi Adam,

.more works

Jeff

Jon Sanchez
Jon Sanchez
6,625 Points

Ah, thank you so much!

Anytime!