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

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

"word-wrap" Example

   <source lang="html4strict">
   

<html> <body>

    Text Text Text Text Text Text Text Text Text TextTextTextTextTextTextTextText 

</body> </html>


     </source>
   
  


"word-wrap" is applied to

   <source lang="html4strict">

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

| |
|

| |<body> <button> |

| |
|

| | currentStyle | | |<custom>

| | | |

| |<dir>
| | |
| | | <embed> | | |<fieldset> | | |<form> <hn> | | |
<html> |

| | <img> | | |<input> <input type="button"> | | |<input type="checkbox"> <inputtype="file"> | | |<input type="hidden"> <input type="image"> | | |<input type="password"> <input type="radio"> | | |<input type="reset"> <input type="submit"> | | |<inputtype="text"> | | |<isindex> | | |<label> <legend> |

| |
  • <listing> | | |<menu> <nobr> | | |<object>
      | | |<option>

      | | |

                                                            |
      |                |                                                    |
      |                |runtimeStyle                                               |
      |                |                          <select>                      |
      |                |                                                 |
      |                |                                              |
      |                |style                                                    |
      |                |                           <td>                          |
      |                |<textarea>                      <th>                          |
      |                |                                                       |
      |                |
        | | |<xmp> | +----------------+--------------------------------------------------------------+ </source>

        "word-wrap" Possible Values

        <source lang="html4strict"> Possible Values normal default; content does not break words

        break-word Content wraps to the next line


        </source>



        "word-wrap" Syntax and Note

        <source lang="html4strict"> Note: How to wrap word. Only applied to absolutely positioned elements or elements with a specified height or width.


        Syntax:

        element { word-wrap: value } elementID.style.wordWrap = "value" document.all.elementID.style.wordWrap = "value"


        </source>