English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm looking for a mathematical formula to convert to to px . I'm not looking for a converter, as I want to convert it myself using a formula.

2007-03-13 10:19:50 · 3 answers · asked by phantom_spirit_04 1 in Computers & Internet Programming & Design

3 answers

An em unit of measurement in the field of typography, equal to the pt size of the current font. This unit is not defined in terms of any specific typeface, and thus is the same for all fonts at a given point size. So, 1 em in a 16 pt typeface is 16 points.
And you can't convert points to pixels unless you know the exact width of your specific computers pixels.

2007-03-13 10:26:36 · answer #1 · answered by Anonymous · 2 0

Convert Em To Px

2016-12-15 03:17:40 · answer #2 · answered by ? 4 · 0 0

Well good luck Here is an article that explains it in detail for you.
http://www.bigbaer.com/css_tutorials/css_font_size.htm
according to W3c
em: the 'font-size' of the relevant font
px: pixels, relative to the viewing device

So basically em scales px stays the same. They really dont translate. With the em it all depends on the parent size!

2007-03-13 10:31:20 · answer #3 · answered by Tracy L 7 · 0 2

fedest.com, questions and answers