From W3C Wiki
< CSS‎ | Properties
Revision as of 18:02, 16 June 2011 by Hiroki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


The font-style property selects between normal, italic and oblique faces within a font family.


Values normal | italic | oblique | inherit
Initial value normal
Applies to All elements
Inherited Yes


  • normal

  • italic

  • oblique

  • inherit
    Takes the same specified value as the property for the element's parent.


Example A


p#no{ font-style: normal; }
p#ita{ font-style: italic; }
p#obl{ font-style: oblique; }


  <p id="no">This is a paragraph(normal)</p>
  <p id="ita">This is a paragraph(italic)</p>
  <p id="obl">This is a paragraph(oblique)</p>

Csslist2 font-style.png

CSS Reference

The CSS specification defines the font-style property in 15.4 Font styling.