Left, center, right, justify

text-align

Specify whether or not ragged edges should be used on paragraphs, and whether they appear on the left or right side.

Property values

Use one of these keywords:

left Position lines of a paragraph flush to the left margin, and ragged along the right margin
right Position lines of a paragraph flush to the right margin, and ragged along the left margin
center Position lines of a paragraph in the center, with ragged edges along both the left and right margins
justify Adjust the spacing between words to make left and right margins both be flush, except for the last line
justify-all Adjust the spacing between words to make left and right margins both be flush, including the last line

Examples

text-align: justify;
text-align
0

style > paragraph > text-alignLeft, center, right, justify

🔗 🔎