From W3C Wiki
< CSS‎ | Properties
Revision as of 18:03, 16 June 2011 by Hiroki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


The font-variant property selects the weight of the font.


Values normal | small-caps | inherit
Initial value normal
Applies to All elements
Inherited Yes


  • normal
    Specifies a font that is not a small-caps font.

  • small-caps
    Specifies a small-caps font.

  • inherit
    Takes the same specified value as the property for the element's parent.


Example A


p#no{ font-variant: normal; }
p#sm{ font-variant: small-caps; }


  <p id="no">This is a paragraph(normal)</p>
  <p id="sm">This is a paragraph(small-caps)</p>

Csslist2 font-variant.png

CSS Reference

The CSS specification defines the font-variant property in 15.5 Small-caps.