font-size
The font-size property specifies the size of a font.
Formal Syntax
<absolute-size> | <relative-size> | <length-percentage [0,β]> | math
JavaScript Access
// Access via element.style
element.style.fontSize = 'medium';
Browser Support
| Feature | Chrome | Firefox | Safari | Edge |
|---|---|---|---|---|
| font-size | 1 | 1 | 1 | 12 |
| math | 109 | 117 | β | 109 |
| rem_values | 31 | 31 | 7 | 12 |
| xxx-large | 79 | 70 | 16.4 | 79 |
Related Properties
- font
- font-family
- font-feature-settings
- font-kerning
- font-language-override
- font-optical-sizing
- font-palette
- font-size-adjust
- font-style
- font-synthesis
- font-synthesis-small-caps
- font-synthesis-style
- font-synthesis-weight
- font-variant
- font-variant-alternates
- font-variant-caps
- font-variant-east-asian
- font-variant-emoji
- font-variant-ligatures
- font-variant-numeric
- font-variant-position
- font-variation-settings
- font-weight
- font-synthesis-position π§ͺ
- font-width π§ͺ
- font-stretch ποΈ