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 Basics (2014) Understanding Values and Units Em and Rem Units

Emmanuel Plouvier
Emmanuel Plouvier
11,919 Points

Is there a bug with editor ?

It's impossible to validate task 2 of 3.

If I enter the value during the first step, it was correct in prefview, but on task 2 preview and "check work" didn't update.

4 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,623 Points

Your code is correct, but with CSS, it is not a good idea to round values. You are setting the value correctly, but 53 / 16 = 3.3125 (4 decimal places). Once you fix that, you're good to go.

h2 {
  font-size: 3.3125em;
}

Sometimes when converting to em, you can get very long decimal places... remember to keep all of it.

:)

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,623 Points

Hey Emmanuel,

I don't believe there is a bug. You'll need to post the code you are entering for us to help you.

I just went through all three tasks in the challenge with no issues.

:)

Emmanuel Plouvier
Emmanuel Plouvier
11,919 Points

Hi,

thanks for your quick reply ! :)

Here is my css code for the second step

/* Complete the challenge by writing CSS below */

header {
  font-size: 1.8em;
}

.title {
  font-size: 1.625rem;
}

h1 {
  font-size: 5.625rem;
}

h2 {
  font-size: 3.313em;
}

Each time i have the error : Bummer! Is the font-size of h2 an em value equivalent to 53px?

I' don't understand what i am doing wrong.