'direction' Example : direction : CSS Attributes and Javascript Style Properties HTML CSS TUTORIALS


HTML CSS TUTORIALS » CSS Attributes and Javascript Style Properties » direction »

 

'direction' Example



    
<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"
<div id=myDiv 
     style="background:aqua; padding:10px;" class="explanations">
Level is Level. 
Leve is not Level.

Not is toN
</div>
</body>
</html>

    
      
      



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo CSS Attributes and Javascript Style Properties
» direction