Home Menu

font-variant

The font-variant CSS property is shorthand for all font-variant subproperties.

Syntax

CSS

font-variant: value;

JS

object.style.fontVariant = "value";

Values

<'font-variant'> = [normal | small-caps]
none

Sets font-variant-ligatures to none and resets all other font feature properties to their initial value.

normal

Resets all subproperties of font-variant to their inital value.

small-caps

Enables display of small capitals.

Initial

normal

Examples

none

normal

small-caps

JS

Internal

font

font-family

font-size

font-stretch

font-style

font-weight

line-height

External

World Wide Web Consortium (W3C)

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms