text-align attribute

Type:"left", "right", "center", "justify", "justify-all"
Inherited:yes
Used By:Text Blocks
Default:"right" for arabic, hebrew, yiddish and urdu locales, "justify" otherwise
See:align

This attribute sets the text-alignment of a block of text. Unlike the align attribute, it does not set the position of the text block. If align is specified but text-align isn't, the alignment of the text is also set by the align attribute - to override this set them both. The "justify-all" value causes the last line of the paragraph to be justified (whereas normal "justify" doesn't).

Draws a paragraph to the left of it's parent block, but with the text right-aligned

<p text-align="right">Right aligned text in a left-aligned block</p>

Draws a paragraph to the right of it's parent block, but with the text left-aligned

<p align="right" text-align="left">Left aligned text in a right-aligned block</p>