CSS Text-align Property

Reference on the CSS text-align Property.

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!

Post comment

Links that you insert are not nofollowed, but will be removed by admins if they are considered spam.

[url=Absolute URL for page]TITLE[/url]

You should insert code boxes around code examples, which will be automatically syntax highlighted.

[code1 html|css|javascript|php|sql]Your Code Here[/code1]

You may want to read our Privacy Policy before submitting your comment.