text align

Utilities for controlling the alignment of text.

2025-04-09

Written by: tdtc

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

Left aligning text

Use the text-left utility to left align the text of an element:

<p class="text-left">So I started to walk into the water...</p>

Right aligning text

Use the text-right utility to right align the text of an element:

<p class="text-right">So I started to walk into the water...</p>

Centering text

Use the text-center utility to center the text of an element:

<p class="text-center">So I started to walk into the water...</p>

Justifying text

Use the text-justify utility to justify the text of an element:

<p class="text-justify">So I started to walk into the water...</p>

Ref