font-variant
Sets whether the text of the object is in small capital letters.
Syntax
{ font-variant:
sVariant }
Possible values
sVariant
String that specifies or receives one of the following values:
normal |
Default. Font is normal. |
small-caps |
Font is in small capital letters. |
This property has a default value of normal. It is inherited.
Examples
The following example uses the font-variant property to change the font to small capitals. This example uses the P element as a selector in an embedded (global) style sheet to set the font style to small-caps in all paragraphs:
<p style="font-variant:small-caps">
This example uses inline scripting to set the font style to small-caps when an onmousedown event occurs:
<div onmousedown="this.style.font-variant='small-caps'">
Standards information
This property is defined in Cascading Style Sheets (CSS), Level 1 (CSS1) .
Applies to
a, abbr, acronym, b, bdo, big, blockquote, body, button, caption, center, cite, code, custom, dd, defaults, del, dfn, div, dl, dt, em, embed, fieldset, font, form, frameset, frame, hn, i, iframe, img, input type=button, input type=checkbox, input type=file, input type=image, input type=password, input type=radio, input type=reset, input type=submit, input type=text, ins, li, object, ol, p, q, s, span, sub, table, td, th, tt, u, ul, var, xmp
See also
Concepts
Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.