Back to CSS1 Reference | CSS1 Properties
Prev font-size | Next font-variant


Property
font-style
Values
normal, italic, oblique
Initial
normal
Inherited
yes

The 'font-style' property selects between normal (sometimes referred to as "roman" or "upright"), italic and oblique faces within a font family.

A value of 'normal' selects a font that is classified as 'normal' in the UA's font database, while 'oblique' selects a font that is labeled 'oblique'. A value of 'italic' selects a font that is labeled 'italic', or, if that is not available, one labeled 'oblique'.

The font that is labeled 'oblique' in the UA's font database may actually have been generated by electronically slanting a normal font.

Fonts with Oblique, Slanted or Incline in their names will typically be labeled 'oblique' in the UA's font database. Fonts with Italic, Cursive or Kursiv in their names will typically be labeled 'italic'.

      H1, H2, H3 { font-style: italic }
      H1 EM { font-style: normal }

In the example above, emphasized text within 'H1' will appear in a normal face.

Log in or registerto write something here or to contact authors.