| Microsoft Typography | Typography on the Web | Specifying fonts... | 5.2.6 'font-size' | |||
|
Value: <absolute-size> | <relative-size> |
<length> | <percentage>
Initial: medium Applies to: all elements Inherited: yes Percentage values: relative to parent element's font size Microsoft® Internet Explorer 3.0 support: partial. Microsoft Internet Explorer 4.0 support: yes.
Length and percentage values should not take the font size table into account when calculating the font size of the element. Negative values are not allowed. On all other properties, 'em' and 'ex' length values refer to the font size of the current element. On the 'font-size' property, these length units refer to the font size of the parent element. Note that an application may reinterpret an explicit size, depending on the context. E.g., inside a VR scene a font may get a different size because of perspective distortion. Examples: P { font-size: 12pt; }
BLOCKQUOTE { font-size: larger }
EM { font-size: 150% }
EM { font-size: 1.5em }
If the suggested scaling factor of 1.5 is used, the last three declarations are identical.
Dark blue text is taken from Cascading Style Sheets, level 1. W3C Recommendation 17 December 1996 - http://www.w3.org/pub/WWW/TR/REC-CSS1
|
|||
| Microsoft Typography | Typography on the Web | Specifying fonts... | 5.2.6 'font-size' | |||