Font style
The font style class sets the font-style property. It adds or removes italic styling of text.
| CSS Shortcut class | Applied style |
|---|---|
|
|
|
|
Examples
Normal
font-normal
This element displays text without italic styling and is used in most cases.
<p class="font-normal">
This element displays text without italic styling and is used in most cases.
</p>
Italic
font-italic
This element displays text with italic styling. It’s used sparingly for short text strings to limit cognitive load.
<p class="font-italic">
This element displays text with italic styling. It’s used sparingly for short text strings to limit cognitive load.
</p>
xs:> 480pxsm:> 640pxmd:> 768pxlg:> 1024pxxl:> 1280px
<div class="xs:font-italic ...">
...
</div>