Description

Sets the horizontal alignment of text within an element.

See also:

  • Font
  • Text indent
  • Text transform
  • Word spacing
  • Direction
Live Example
Play with the code in the textarea below.

Values
center, justify, left, right
Default value
left
Introduced in CSS version
1
Applies to elements
Block level elements
Inherited
Yes
Browser Support
BrowsersIEFirefoxSafariOperaChrome
Versions51160.2
Belongs to:

See the full list CSS properties and browser support: CSS Properties