|
July 26, 1998
 |
 |
Putting Style Sheets in Perspective
font-style
|
- Initial Value:
- normal
- Allowed Values:
- normal
- italic
- oblique
-
inherit
- Applies to:
- all elements
- Inherited?:
- yes
|
Font-style refers to the 'slant' of the text. Three styles
are available:
The Oblique style is similar to Italic, but not the same
as Italic. Within the serif font families, the italic and
oblique differ in the shape of the serif and may look
entirely different. Sans-serif families often display
oblique and italic the same.
Font-style specified with the
Style Element
|
P { font-style: italic }
|
Font-style specified with the Style Attribute
<P style="font-style : Normal;
font-family : serif"
>Normal AaBbCcXxYyZz
|
Normal AaBbCcXxYyZz
|
<P style="font-style : Italic;
font-family : serif"
>Italic AaBbCcXxYyZz
|
Italic AaBbCcXxYyZz
|
<P style="font-style : Oblique;
font-family : serif"
>Oblique AaBbCcXxYyZz
|
Oblique AaBbCcXxYyZz
|
Additional Resources:
Putting Style Sheets in Perspective:font-family
Putting Style Sheets in Perspective: Table of Contents
Putting Style Sheets in Perspective:font-variant
|