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

Help using rem's to set base font size?

I'm not exactly sure what I'm doing wrong here. I'm a bit confused on how to use rem's to solve the em compounding issue. Here's my code:

h1 {
    font-size: 2.5em;
}

p {
    font-size: 1.5em;
}

.more {
    font-size: 1.5rem;
}

2 Answers

Devin Gray
Devin Gray
39,261 Points

REM means the "Root EM", the question asks you to change the .more class back to its base font size, its base font size being 16px or 1em. So with that in mind try again and see what you get.

Thank you very much, sir! Your reply was very helpful :)

Devin Gray
Devin Gray
39,261 Points

Glad I could be of service! :)