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
Isaac Donnell
699 PointsQuicker EM conversion
Is there a quicker way to convert px to em with out going through all the code and converting by hand?
1 Answer
J.T. Gralka
20,126 PointsWell, the conversion is just that – a conversion. You have to do the math in some fashion. There are online tools that can help make this conversion easier. You might try a service like http://pxtoem.com/.
As far as not having to go through all of your code, you might check online to see if there is a Sublime Text 2 plugin to help with conversions like this. Without a plugin, you can always use iterative searching to go through every instance of a px value. Other than that, I'm not sure what you mean by "a quicker way to convert px to em with out going through all the code and converting by hand".
Hope that helps,
J.T.