Font Style
Utilities for controlling the font style of an element.
Contents
Quickly change the font-style
of text using the font style utilities.
Quick reference
Class | Properties |
---|---|
.fst-italic | font-style: italic; |
.fst-normal | font-style: normal; |
Basic examples
Italicizing text
The fst-italic
utility can be used to make text italic. Likewise, the fst-normal
utility can be used to display text normally — typically to reset italic text at different breakpoints.
fst-italic
The quick brown fox jumps over the lazy dog.
fst-normalThe quick brown fox jumps over the lazy dog.
<p class="fst-italic ...">The quick brown fox ...</p>
<p class="fst-normal ...">The quick brown fox ...</p>