Appearance:
text-align: <value>
Possible Values:
left | right | center | justify | text-kashida-space
Initial Value:
Determined by browser
Applies to:
Block-level elements
Inherited:
Yes

The text-align property can be applied to Block-level elements ( P, H1, etc.) to give the alignment of the element's text. This property is similar in function to HTML's align attribute on paragraphs, headings, and divisions.

text-kashida-space [Internet Explorer 5.5+]
A "Kashida" is a typographic effect that justifies lines of text by elongating certain characters at carefully chosen points. It is used in Arabic writing systems. This property controls the ratio of kashida expansion to white-space expansion when justifying lines of text in an element. The property can be used with any 'text-justify' justification mode where kashida-style expansion is used ("auto", "distribute", "kashida", and "newspaper".)


Some examples follow:

<style>
H1 { text-align: center }
P.newspaper { text-align: justify;width:200px ;font:italic normal 14pt times, serif;}
P.kashida { text-align: justify; text-justify: newspaper; text-kashida-space: 100%;width:200px; font:italic normal 14pt times, serif;position:absolute;margin-top:-325px;margin-left:320px;border-left:1px solid #000000;padding-left:20px;}
P.normal {width:200px; font:italic normal 14pt times, serif;position:absolute;margin-top:-340px;margin-left:440px;border-left:1px solid #000000;padding-left:20px; }
</style>

<h1>This is a title</h1>
<p class="newspaper"><b>Justify example:<br/>While this text is the justified body of the document.</b> This means that the text is justified (aligned to both the right and the left of the screen, making the resulting display easier and more pleasing to look at.<br/>However with a very long word like aaaaaaaaaaaaaaaaaaaa a problem can occur with the layout.<p>
<p class="kashida"><b>Kashida example:<br/>While this text is the justified body of the document.</b> This means that the text is justified (aligned to both the right and the left of the screen, making the resulting display easier and more pleasing to look at.<br/>However with a very long word like aaaaaaaaaaaaaaaaaaaa a problem can occur with the layout.<p>
<p class="normal"><b>Normal example:<br/>While this has No justification.</b> This means that the text is not justified (aligned to both the right and the left of the screen, making the resulting display more difficult and less pleasing to look at.<br/>However with a very long word like aaaaaaaaaaaaaaaaaaaa a problem can occur with the layout.<p>

Would look like this:

This is a title

Justify example:
While this text is the justified body of the document.
This means that the text is justified (aligned to both the right and the left of the screen, making the resulting display easier and more pleasing to look at.
However with a very long word like aaaaaaaaaaaaaaaaaaaa a problem can occur with the layout.

Kashida example:
While this text is the justified body of the document.
This means that the text is justified (aligned to both the right and the left of the screen, making the resulting display easier and more pleasing to look at.
However with a very long word like aaaaaaaaaaaaaaaaaaaa a problem can occur with the layout.

Normal example:
While this has No justification.
This means that the text is not justified (aligned to both the right and the left of the screen, making the resulting display more difficult and less pleasing to look at.
However with a very long word like aaaaaaaaaaaaaaaaaaaa a problem can occur with the layout.