HTML/CSS/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. Leve is not Level. Not is toN

</body> </html>


     </source>
   
  


The direction Property

   <source lang="html4strict">

Value Meaning ltr The text flows from left to right. rtl The text flows from right to left. inherit The text flows in the same direction as its parent element.

</source>