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

Tracey Dolby
Tracey Dolby
5,638 Points

I have no idea what to do for this task, its the first one that has stumped me, i've watched the video 4 times.

Here is what it is asking me to do: "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." this is my response: .a { font-size: 2.5rem; }

the link for class "more" is <a class="more"......> the two lines before this are:

h1 { font-size: 2.5em; } p { font-size: 1.5em; }

If someone can please explain what I need to do I will really appreciate it.

2 Answers

It looks like you are targeting elements with the class of "a" instead of elements with the class of "more". To target a class, you write a dot, followed by the name of the class. So in your case, I think this is what you're looking for:

.more {
font-size: 1rem;
}

Also, notice how I set the font-size to 1 rem. That's because 1 rem is always equal to the base font-size of the root HTML element. So if your root element is 16px, 1rem is equal to 16px.

Tracey Dolby
Tracey Dolby
5,638 Points

Thank you Nick, that is helpful, it worked. I'll take note of the information that you have given me. I really appreciate your help.

no problem!