CSS2 » Properties » font-style

Version: Level 1

Compability: IE4+  N4+

Syntax:
font-style : normal | italic | oblique
oblique
The oblique value slants the characters.
italic
If you select the italic value, and it is not available for a particular font, then the oblique value will be applied.
normal
The normal value is the default and refers to the characters being upright. By declaring normal, you can ensure that any previous declaration will not effect a selected text.

The font-style property allows you to designate a font to be normal, italic or oblique. This property is inherited.

Examples

Code:
p { font-style: normal; }
p { font-style: italic; }
p { font-style: oblique; }
Language(s): CSS2
Code:
<span style="font-style: normal;">Normal </span>
<span style="font-style: italic;">Italic </span>
<span style="font-style: oblique;">Oblique </span>
Output:
Normal Italic Oblique
Language(s): CSS2

See Also: