Loading...

text-align

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.

CSS class prefixes and related properties

Class name prefixCSS properties
tex-ali-*text-align

CSS class suffixes and property values

Class name suffixCSS properties value
*-underlineunderline
*-overlineoverline
*-nonenone
*-startstart
*-endend
*-leftleft
*-rightright
*-centercenter
*-justifyjustify
*-justify-alljustify-all
*-match-parentmatch-parent
*-inheritinherit
*-initialinitial
*-revertrevert
*-unsetunset

tex-ali: text-align

.tex-ali-underline.tex-ali-underline-hover.tex-ali-overline.tex-ali-overline-hover.tex-ali-none.tex-ali-none-hover.tex-ali-start.tex-ali-start-hover.tex-ali-end.tex-ali-end-hover.tex-ali-left.tex-ali-left-hover.tex-ali-right.tex-ali-right-hover.tex-ali-center.tex-ali-center-hover.tex-ali-justify.tex-ali-justify-hover.tex-ali-justify-all.tex-ali-justify-all-hover
.tex-ali-underline {
  text-align: underline;
}
© Cssville 2026
Hosted by Vercel.Protected by Cloudback.