CSS font-variant property

Description

CSS font-variant property selects italic or oblique styles. italic style is cursive in nature. While oblique is a sloped version (at angle) of regular font.

Syntax

font-variant : normal | italic | oblique

Property values

normal

none value adds no style to the font.

font-variant: normal;

italic

represents italic type font.

font-variant: italic;

oblique

It represents slanted text at some angle. Positive value of angle represents clockwise slant. And the negative one represents anti-clockwise slant. If there is no angle, it represents 14deg.

font-variant: oblique;

Applicable to

It applies to all elements

#CSS digger
Was this article helpful?

 
normal, italic, oblique, $60000.00, 4th
×

Ctrl+D