'direction' Example : direction « CSS « HTML / CSS






'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>

    
      
        
  








Related examples in the same category

1.The direction Property
2.direction:ltr; direction:rtl;