Introduction
CSS Classes
React Components
Cssville has 7 utility classes for text-decoration. Add one to an element's class attribute to set the property, for example tex-dec-underline. Put a breakpoint name in front of a class to apply it only on screens up to that width, as in md-tex-dec-underline. Add -hover to the end to apply a class only on hover, as in tex-dec-underline-hover. Getting started explains how class names are built.
| Class name prefix | CSS properties |
|---|---|
| tex-dec-* | text-decoration |
| Class name suffix | CSS properties value |
|---|---|
| *-underline | underline |
| *-overline | overline |
| *-none | none |
| *-inherit | inherit |
| *-initial | initial |
| *-revert | revert |
| *-unset | unset |
.tex-dec-underline {
text-decoration: underline;
}