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!

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

Help me to solve this

Help me to solve this task

My actual task is '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.'

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,250 Points

Ho Rajasekhar,

If you could post up the question and the code you've tried so far we'll try and help you out, thanks. :)

1 Answer

Hi there,

There are three parts to this challenge.

The first asks you to change the font size of the h1 element to 40px, but using the relative scaling of an em unit. The document has a default of 16px. To do this, work out what would multiply 16 to 40? The answer is 2.5. The first part of the challenge looks like:

/* Write your CSS code below */
h1 {
  font-size: 2.5em;

Next you do the same thing to the p element but this time you wnt to scale the font to 24px; that's a 1.5 factor:

p {
  font-size: 1.5em;

The last part asks you to select the link element with the class more and set its font size to the base size using the rem unit:

a.more {
  font-size: 1rem;

I think that should get you through.