Menu
The font-variant
property designates whether or not text should be displayed in a small-caps font.
Small-caps fonts convert all lowercase letters to uppercase, but the converted uppercase letters display in a smaller font size than the original uppercase letters.
div.smallcaps {
font-variant: small-caps;
}
normal
Default value. A normal font is displayed.
small-caps
A small-caps font is displayed.
initial
Sets the property to its default value.
inherit
Inherits this property’s value from its parent item.
Have a code example of font-variant
? Submit a codepen.io demo and we'll showcase it here ↴