Ronalds Vilciņš


CSS font-variant property

The font-variant CSS shorthand property allows you to set all the font variants for a font.

p {
  font-variant: normal | small-caps | initial | inherit;
}

normal - It has a default value. It specifies a normal font-size.

small-caps - It is used to convert all the lowercase letter into a uppercase letters.

initial - It sets the property to its default value.

inherit - Inherits this property from its parent element.




This site is ad-free and doesn’t use trackers. If you’d like to support my writing, I’d love if you could buy me a coffee.