0 out of 1 rated this helpful - Rate this topic

font-variant

Sets whether the text of the object is in small capital letters.

{ font-variant: sVariant }

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.

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'">

A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, CUSTOM, DD, DEFAULTS, DFN, DIV, DL, DT, EM, FIELDSET, FORM, HN, HTML, I, 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, LI, OL, P, S, SPAN, SUB, TABLE, TBODY, TD, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP

Concepts

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.