CSS font-style Property
Description
The font-style property controls which stylistic variant of a typeface is requested for rendering text — effectively telling the user agent to use the font face within a family that provides a slanted, cursive or otherwise stylistically altered set of glyphs intended for emphasis or typographic nuance. It is about selecting a designed variant from the available font faces (or asking the renderer to create a slanted look if no designed variant exists), so its effect is on which glyph outlines are chosen rather than directly changing the underlying characters.
When the property is applied, it participates in the font matching process together with the chosen font-family and any defined font faces. The browser or renderer will try to find a font face that best satisfies the requested stylistic intent; if a matching face is unavailable, the agent may fall back to a different face or synthesize a slanted appearance. Synthesized styling differs from a purpose-designed face in subtle ways (stroke contrast, terminals, spacing) and can affect legibility and tone, so designers should be aware that the visual result depends on available font resources.
Because switching to a different glyph set can change glyph metrics, applying this property can influence layout: different faces may have different advance widths, kerning, and vertical metrics, which can cause reflow or slight shifts in alignment. It also interacts with other font-related settings — for example, its outcome can be affected by the specified font-weight and by any use of the font shorthand — so changes to those declarations can alter which physical font file is selected. In practice, use this property when you want typographic emphasis or style variation while keeping in mind the possibility of fallback synthesis and metric changes.
Definition
- Initial value
- normal
- Applies to
- All elements
- Inherited
- Yes
- Computed value
- As specified
- Animatable
- No
- JavaScript syntax
- object.style.fontStyle
Interactive Demo
Syntax
font-style: normal | italic | oblique
Values
- normalSelects a face that is classified as a normal face, one that is neither italic or obliqued.
- italicSelects a font that is labeled as an italic face, or an oblique face if one is not.
- obliqueSelects a font that is labeled as an oblique face, or an italic face if one is not.
- inherit
Example
Browser Support
The following information will show you the current browser support for the CSS font-style property. Hover over a browser icon to see the version that first introduced support for this CSS property.
This property is supported by all modern browsers.
Desktop
Tablets & Mobile
Last updated by CSSPortal on: 1st January 2026
