CSS Text Alignment, Justification

By Xah Lee. Date: . Last updated: .

This page shows you how to align and justify text using CSS.

text-align:left Lots of text here, some long, some short, of long and short. Lots of text here, some long, some short, of long and short. Lots of text here, some long, some short, of long and short.

text-align:right Lots of text here, some long, some short, of long and short. Lots of text here, some long, some short, of long and short. Lots of text here, some long, some short, of long and short.

text-align:center Lots of text here, some long, some short, of long and short. Lots of text here, some long, some short, of long and short. Lots of text here, some long, some short, of long and short.

text-align:justify Lots of text here, some long, some short, of long and short. Lots of text here, some long, some short, of long and short. Lots of text here, some long, some short, of long and short.