Browser Internet Explorer Netscape Opera Safari Firefox
Version 5.5 6.0 7.0 8.0 8.0 9.0 7.0 8.0 9.2 9.5 1.3 2.0 3.1 1.5 2.0 3.0
Supported Errors Errors Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes
Short information
Default value left
Inherited Yes
Applied To all elements
HTML analog <center > <p | h1 | div | table | thead | tbody | tfoot | tr | th | td align>
Reference to specification http://www.w3.org/TR/CSS21/text.html#propdef-text-align
It defines horizontal alignment of the text within an element. This attribute is inherited therefore it can be determined for the whole block for influence on all elements enclosed in it.


text-align: center | justify | left | right
This argument aligns a text on the centre. The text is located on the centre of a window horizontal of a browser or the container where the text block is located. It seems that lines of the text are strung on an invisible axis which passes on the web page centre. The similar way of alignment is actively used in headings and various signatures like caption. It gives an official and solid kind to the text appearance. In all other cases alignment on the centre is applied seldom because it is inconveniently to read great volume of such text.
Width alignment means simultaneous alignment on the left and the right border. A browser adds blanks between words to act.
This argument aligns a text on the left border. The text lines are adjusted by a left border and the right border settles down "short flight of stairs". Such way of alignment is the most popular on sites because it allows the user to find a sight easily a new line and comfortably to read the big text.
This argument aligns a text on the right border. This way of alignment plays the role of the antagonist to the previous type. So, lines of the text equal by a right border and left remains "fragmentary". Because of the left border is not adjusted and reading of new lines begins with it, such text reading is more difficulty, than if it has been adjusted by a left border. Therefore alignment by a right border is applied usually for short headings in volume no more than three lines. We do not consider specific sites where it is necessary to read the text from right to left. There is probably similar way of alignment. Also it is useful. But where have you seen these sites in our country?


   div {
    border: 1px solid black; /* Frame parameters */
    padding: 5px; /* Fields around the text */
    margin-bottom: 5px; /* Bottom margin */
   #left { text-align: left; }
   #right { text-align: right; }
   #center { text-align: center; }
   .content {
    width: 75%; /* Lay width */
    background: #fc0; /* Background color */
<div id="left">
<div class="content">Left alignment</div>
<div id="center">
<div class="content">Center alignment</div>
<div id="right">
<div class="content">Right alignment</div>
The result of this example is shown on the figure 1

Object model
Differential Backup
Cloud Technology
Cloud Computing
Cloud Backup Services