font-size
Definition
The font-size property specifies the size of the font. It's best to use relative sizes for fonts such as em or a percentage, so that users can enlarge the font size through their Web browsers.
Example
body {font-size: 1em}h1 {font-size: 160%}
Characteristics
Possible values
- One of the following keywords:
xx-small, x-small, small, medium, large, x-large or xx-large. - One of the following keywords:
larger or smaller. - Specific font size length.
- Specific font size percentage.
inherit- Use the same computed value as the parent element for this property.
Default value
medium
Applies to
All elements
Inherited
Yes
See also