HTML CSS Reference/CSS Attributes and Javascript Style Properties/text justify

Материал из Web эксперт
Перейти к: навигация, поиск

"text-justify" Example

   <source lang="html4strict">
   

<html> <body>

This sample paragraph is justified.

Outside the "justify". </body> </html>


     </source>
   
  


"text-justify" is applied to

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+

| Applied_To |<address>
| | |<body>
|

| |currentStyle

|

| |<dir>
| | |
| | |<fieldset> <form> | | |<hn>
| | |<legend>
  • | | |<listing> <marquee> | | |<menu>
      | | |

                               |
      |                |runtimeStyle                    style                         |
      |                |                          |
      |                |
        <xmp> | +----------------+--------------------------------------------------------------+ </source>

        "text-justify" Possible Values

        <source lang="html4strict"> Possible Values auto The default; the browser determines the alignment distribute-all-lines Justify all lines of text inter-cluster Justify text that does not contain inter-word spacing inter-ideograph Justify ideographic text inter-word Justify by increasing space between words, but not the last line in the paragraph kashida Justify by increasing the length of the characters; applies to Arabic texts newspaper Justify by increasing or decreasing space between words and letters


        </source>



        "text-justify" Syntax and Note

        <source lang="html4strict"> Note: How to justify the text. Syntax:

        element { text-justify: value } elementID.style.textJustify = "value" document.all.elementID.style.textJustify = "value"


        </source>
      | | |