Skip to main content

Text Align

Utilities for controlling the alignment of text.

CSS Property:text-align
Classes:6

Text Align Classes

ClassCSS
text-lefttext-align: left;
text-centertext-align: center;
text-righttext-align: right;
text-justifytext-align: justify;
text-starttext-align: start;
text-endtext-align: end;

Arbitrary Values

You can use arbitrary values with square bracket notation when you need a specific value not included in the default scale.

[text-align:value]

Responsive Variants

Apply text align utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:text-left
768px+md:md:text-left
1024px+lg:lg:text-left
1280px+xl:xl:text-left
1536px+2xl:2xl:text-left