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

I converted px to em, but it says i dont have the right size. I keep rechecking my work but i cant find anything

I'm on the coding challenge and it says i have the wrong size. I said to convert 53 px to em and i got 3.313. It says its wrong

1 Answer

If I remember right target / context = result for converting px to em. Target being 53px and the context in this case is 16px. So, 53 / 16 = 3.3125, which is pretty close to your result. Maybe you enter in a wrong value for the context when dividing?

h2 {
  font-size: 3.3125em;

Thank you! I converted it using a conversion site