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

Trouble with 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.

I am having trouble getting the CSS for this lesson. Can you send me the answer? Thanks!

1 Answer

Hi Stefanie,

You use rem and em to modify font size based on the root font size. The root font size is the default font size of the web page. If this size isn't explicitly declared by the person writing the code it will be supplied by the browser (typically 16px). If you declare a font-size of 2em or 2rem for an element the font size will be 32px (based on a root font size of 16px). So if you want to set a font to the root font size you would multiply the em or rem by 1: font-size: 1rem;

You need to select the link with the class more. Such as, .more { font-size: 1rem: }

Jeff