The font-variant property is used to convert the lower case letters into the upper case via a variation called small-caps. The major difference between a regular upper case and the small-caps is that the letter generated is somewhat smaller size upper case then it would have been as a regular within given font family. Beside that the resulting proportions are also slightly changed giving a very stylish look the font.

The font-variant property contains following information:

  1. value: normal, small-caps or inherit;
  2. initial: normal;
  3. applies to: all elements;
  4. inherited: yes;
  5. percentages: N/A;
  6. media: visual;
  7. computed value: as specified.

Example

CSS font-variant property example:

 

›› go to examples ››