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

Guil Hernandez divides 23px to 53px and gets .5em. How does he get that?

Please explain...

Steven Parker
Steven Parker
243,656 Points

Please provide a link to the course page where you found this (and a time index if it's a video).

1 Answer

I'm sure it's just to approximate the em value. Sometimes you want an extremely long decimal value, sometimes it's not really imperative...

The actual em value for 23/53 is .4339622641blah blah blah.

For your web design typography and what-not, do what you feel looks aesthetically pleasing.