Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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!