CSS2 » Properties » font-variant

Version: Level 1

Compability: IE4+  N6

Syntax:
font-variant : normal | small-caps
small-caps
The small-caps value renders the entire text as small capital letters.
normal
The normal value is the default. By declaring normal, you can ensure that any previous declaration will not effect a selected text.

The font-variant property allows you to choose between a normal font that has both upper and lower case letters or a font that is composed of small capital letters. This property is inherited.

Examples

Code:
p { font-variant: normal; }
p { font-variant: small-caps; }
Language(s): CSS2
Code:
<span style="font-variant: normal;">Normal </span>
<span style="font-variant: small-caps;">Small Caps </span>
Output:
Normal Small Caps
Language(s): CSS2

See Also: