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 trialNicholas Risen
2,860 PointsI 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
tootiemcflow
5,601 PointsIf 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;
}
Nicholas Risen
2,860 PointsNicholas Risen
2,860 PointsThank you! I converted it using a conversion site