font-style
The font-style property specifies the style of a font (normal, italic, oblique).
Formal Syntax
normal | italic | left | right | oblique <angle [-90deg,90deg]>?
JavaScript Access
// Access via element.style
element.style.fontStyle = 'normal';
Browser Support
| Feature | Chrome | Firefox | Safari | Edge |
|---|---|---|---|---|
| font-style | 1 | 1 | 1 | 12 |
| italic | 1 | 1 | 1 | 12 |
| normal | 1 | 1 | 1 | 12 |
| oblique | 1 | 1 | 1 | 12 |
| oblique-angle | 62 | 61 | 11.1 | 79 |
Related Properties
- font
- font-family
- font-feature-settings
- font-kerning
- font-language-override
- font-optical-sizing
- font-palette
- font-size
- font-size-adjust
- 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 ๐๏ธ