Sent by Felix Miata on 30 November 2003 16:04
Tonico Strasser wrote:
> I was curious how much ems is 12px.
Ems are mostly just a fancy way to say %. If the default is 16px, 12/16
equals 3/4 equals .75 equals 75% equals .75em.
> In most browsers the default font-size is 16px.
Yes, and no. In IE windoze, the default size is 12pt, which is also the
case for most browsers not based upon Gecko. In a default install, the
DPI is 96, and 12pt @ 96DPI = 16px - usually. Pre-IE6 versions of IE had
a size bug with a broken pt to px relationship, displaying 12pt @ 18px.
Also, because points are DPI dependant, you can't count on 12pt = 16px
equivalence even in IE6. Windoze in display properties calls 96 DPI
"small fonts", and people who want larger system fonts can choose "large
fonts" (125%=120DPI), or "other" (75%=72DPI, 150%=144DPI, 200%=192DPI or
"custom"). When "large fonts" is selected, 12pt becomes a IE6 20px
default. When 200% is chosen, something appropriate for display
resolutions of 1600x1200 and higher, 12pt becomes a 24px IE6 default.
> (Please correct me if this is wrong.)
> 16px = 1em
> 15px = 0.94em
> 14px = 0.88em
> 13px = 0.81em
> 12px = 0.75em
> 11px = 0.69em
> 10px = 0.63em
> 9px = 0.56em
> px / font-size = em
> Demo page:
> http://webproducer.at/lab/px2em
That's complete as far as it goes (common default default), but on
http://members.ij.net/mrmazda/auth/wauth1.html you'll find many pages
that provide more (and less) elaborate demos of font size relationships,
ems to pixels among them. This one is for 16px:
http://members.ij.net/mrmazda/auth/font-default-short16px.html
--
"God opposes the proud but gives grace to the humble."
1 Peter 5:5 NIV
Team OS/2 ** Reg. Linux User #211409
Felix Miata *** http://members.ij.net/mrmazda/auth/auth.html
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/