style.fontVariant (Property)

The small-caps variant of a font for a style.


CSS level - 1
DOM level - 2
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myStyle.fontVariant
CSS syntax:font-variant: aVariant
Argument list:aVariantA font variant

This is a popular design trick which renders lowercase letters in upper-case but in a smaller font size. This is often called small-caps.

The following keywords can be applied to this property:

See also:style.font