Back to CSS1 Reference | CSS1 Properties
Prev padding-top | Next text-decoration


Property
text-align
Values
left, right, center, justify
Initial
UA specific
Inherited
yes

This property describes how text is aligned within the element. The actual justification algorithm used is UA and human language dependent.

Example:

      DIV.center { text-align: center }

Since 'text-align' inherits, all block-level elements inside the 'DIV' element with 'CLASS=center' will be centered. Note that alignments are relative to the width of the element, not the canvas. If 'justify' is not supported, the UA will supply a replacement. Typically, this will be 'left' for western languages.

CSS1 core: UAs may treat 'justify' as 'left' or 'right', depending on whether the element's default writing direction is left-to-right or right-to-left, respectively.

Log in or register to write something here or to contact authors.