HTML CSS Reference/CSS Attributes and Javascript Style Properties/word spacing

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

"word-spacing" Example

   <source lang="html4strict">
   

<html> <body>

This is a sample paragraph. This is a sample paragraph. This is a sample paragraph. This is a sample paragraph. This is a sample paragraph. This is a sample paragraph. This is a sample paragraph. This is a sample paragraph. This is a sample paragraph. This is a sample paragraph.


<input type="button"

      value="Set wordSpacing property to 10px" 
      onclick="myD.style.wordSpacing="10px"">

<input type="button"

      value="Set wordSpacing property to 0.5cm" 
      onclick="myD.style.wordSpacing="0.5cm"">

<input type="button"

      value="Set wordSpacing property to normal" 
      onclick="myD.style.wordSpacing="normal"">

</body> </html>


     </source>
   
  


"word-spacing" is applied to

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | Applied_To |<a> <address> | | | |

| |
<body> |

| |<button> |

| |
|

| | <col> | | |<colgroup> currentStyle | | |<custom>

| | | <dir> |

| |
|

| |

| | |<fieldset> <form> | | |<hn> <html> | | | <img> | | |<inputtype="button"> <input type="checkbox"> | | |<input type="file"> <input type="image"> | | |<input type="password"> <input type="radio"> | | |<input type="reset"> <inputtype="submit"> | | |<input type="text"> <isindex> | | | <label> |

| |<legend>
  • | | |<listing> <marquee> | | |<menu>
      | | |

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

        "word-spacing" Possible Values

        <source lang="html4strict"> Possible Values normal default; no additional spaces length A floating-point number followed by a unit designator


        </source>



        "word-spacing" Syntax and Note

        <source lang="html4strict"> Note: Controls the additional spaces between words.

        Syntax:

        element { word-spacing: value } elementID.style.wordSpacing = "value" document.all.elementID.style.wordSpacing = "value" // IE only


        </source>

      |

      | |<textarea> <tfoot> |

      | |
      <thead> | | |