Previous Message
Next Message

px2em Conversion

Sent by Tonico Strasser on 30 November 2003 22:10


[EMAIL-REMOVED] wrote:
> As others have mentioned, default font sizes depend on the browser,
> operating system, and user.
> 
> If you are looking for a good comparison of font sizes, take a look at Owen
> Briggs' immense compilation of font size comparisons:
> 
> http://www.thenoodleincident.com/tutorials/typography/
> 
> He suggests that 76% (0.76em) is consistent across all browsers. Eyeballing
> it, I make it out to be equivalent to the old-fashioned < font size="2" >
> on IE PC, which was a common size used across non-CSS sites from before.

Oh yes, that's what I mean. As the screenshots shows 76% = 12px in the 
majority of the browsers.

I wonder if it would make sense to calculate smaller or larger fonts, 
assuming the font-size is 12px.

body {font-size: 76%;}
h1 {font-size: 1.5em;} /* = 18px? */

/* I have no problem if the user has a special settings where the 
font-size does not default to 12px, it's meant as a calculation base 
only. */

Thanks, that helped.

Tonico

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: