Previous Message
Next Message

px2em Conversion

Sent by Christoph Päper on 30 November 2003 16:04


@import "advocacy/font-size#px";
@import "advocacy/font-size#%3C1em";

*Tonico Strasser*:
>
> I was curious how much ems is 12px.

You cannot reliably convert a relative unit into an absolute, because you
don't know all parameteres the relative one is influenced by. This is even
more true when inheritance comes into play.

> In most browsers the default font-size is 16px.

"Most" is disputable, but in some, yes. Some give it in points instead (e.g.
12pt), which may or may not compute to 16px on a certain screen.

______________________________________________________________________
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: