By using this site you agree to the use of cookies by Brugbart and our partners.

Learn more

CSS Text-align Property

Reference on the CSS text-align Property.

Edited: 2015-02-21 15:17

CSS Text-align allows to align the text.

In earlier versions of IE, this would incorrectly effect elements such as DIVs as well. Text-align was, and still is being used by some web-designers to Center the layout in older browser versions.

Possible Values

  • left (Default)
  • center
  • right
  • justify
body {
  text-align: center;

Inherited? YES!