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.
Syntax
/* 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;
font-style Browser support
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+