HTML CSS Reference/CSS Attributes and Javascript Style Properties/direction

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

"direction" Example

   <source lang="html4strict">
   

<html> <body> <input type="button"

      onclick="myDiv.style.direction=event.srcElement.value;" 
      value="rtl"> 

<input type="button"

      onclick="myDiv.style.direction=event.srcElement.value;" 
      value="ltr"> 
Level is Level.

</body> </html>


     </source>
   
  


"direction" is applied to

   <source lang="html4strict">

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

| |
<body> |

| |<button> |

| |
|

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

| | |defaults | | | <dir> |

| |
|

| |

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

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

      | | |

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

        "direction" Possible Values

        <source lang="html4strict"> Possible Values ltr The default; left to right rtl Right to left inherit Direction is inherited from container element


        </source>



        "direction" Syntax and Note

        <source lang="html4strict"> Note: Defines the reading order of the element. Specify the direction of the table column layout and the direction of the horizontal overflow. This property does not affect the directional flow of alphanumeric characters. Syntax:

        element { direction: value } elementID.style.direction = "value" document.all.elementID.style.direction = "value" // IE only


        </source>

      |

      | |<textarea> <tfoot> |

      | |
      <thead> | | |