The font-style property allows italic or oblique faces to be selected. Italic forms are generally cursive in nature while oblique faces are typically sloped versions of the regular face.

  • Initial valuenormal
  • Applies toAll elements
  • InheritedYes
  • MediaVisual
  • Computed valueAs specified
  • AnimatableNo
  • CSS VersionCSS1, CSS2, CSS3
  • JavaScript
Formal syntax: normal | italic | oblique 

font-style: normal;
font-style: italic;
font-style: oblique;
  • 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
.class {font-style: italic;}

Click the button below to experiment with this property.

Give it a Try!


Last updated on 23rd March 2014 By Rene Spronk

View All CSS Properties

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.