Name

font-variant

Values:

small-caps | normal | inherit

Initial value:

normal

Applies to:

All elements.

Inherited:

Yes.

Computed value:

As specified.

Description:

This property is basically used to define small-caps text. It is theoretically possible for a user agent to compute a small-caps font face from the normal face.

Examples:

h3 {font-variant: small-caps;}
p {font-variant: normal;}

Supported by:

Firefox, Internet Explorer, Opera, Safari.

Get CSS Pocket Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.