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 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,860 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,860 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.