HTML - A formula to convert EM to PX

Pixels = Ems * 16

Why?

Because there are 16 pixels in an Em.

If you haven't explicitly set a font size, then 1 em will be the size of the browser's default font, which is 12 points, or 16 pixels.



Ads by Google


Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath