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

Mahmoud Mahdy
Mahmoud Mahdy
2,653 Points

where is the wrong ?

i have this question :

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.

and my answer code is :

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

but it is wrong where is my fault ?

2 Answers

Tom Mertz
Tom Mertz
15,254 Points

Hi Mahmoud,

Sometimes the challenges want you to use a different notation

a.more

See if that works.

Mahmoud Mahdy
Mahmoud Mahdy
2,653 Points

Thank You Tom , It Works :)