font-style

Sets whether text should be rendered in an upright (normal), slanted (italic), or skewed (oblique) style.

It is documented as part of the CSS Fonts specification.

/* Usage Example */
em {
  /* Standard way to italicize text */
  font-style: italic;
}
.slanted{
  /* Skews the text by a specific degree */
  font-style: oblique 15deg;
}

/* Syntax */
font-style: normal;
font-style: italic;
font-style: oblique;

/* Global values */
font-style: inherit;
font-style: initial;
font-style: revert;
font-style: revert-layer;
font-style: unset;
Widely available Since 2015 96% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.

1+
1+
1+
12+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC