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

i think you got an error on this page

The answer is: h2 { font-size: 3.13em; }

Right? But the changes i make in css doesn't effect preview page, no matter what i do. And as a result i can't go to the next step!

3 Answers

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Dmitrii;

Welcome to Treehouse!

It looks like you have the wrong value and, for this challenge we do not want to round our value. So for a parent value of 16px, and a target value of 53px we wind up with 3.3125em. (53 / 16 = 3.3125)

Make any sense?

Happy coding,
Ken

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hey Dmitrii.

The page is fine. The problem is you rounded down the value, and CSS doesn't like that and the challenge's code checker doesn't like it even more :)

The value you need is 53/16 = 3.3125

Keep Coding! :)

Thank you Jason and Ken for such a quick response! You guys are great! My calc app rounded this value to 3 decimal automatically:)