Web4College

CSS font-variant property

src

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;
Try it

italic

represents italic type font.

font-variant: italic;
Try it

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;
Try it

Applicable to

It applies to all elements