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