font-variant

The font-variant property specifies a small-caps variation of the font.

Syntax

font-variant: normal | small-caps | inherit
Initial: normal
Applies To: all elements
Inherited: yes
Percentages: NA
Media: visual

Values

font-variant: value
Value Description
normal Not a small-caps font
small-caps Lower case letters look similar to the uppercase ones, but in a smaller size and with slightly different proportions

DOM

[window.]document.getElementById("element-id").style.fontVariant = "font-variant";

Example | normal

Example | small-caps

Example | DOM

External

W3C Cascading Style Sheets, level 1

W3C Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification