'direction' Example : direction « CSS Attributes and Javascript Style Properties « HTML CSS Reference






'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. </div>
</body>
</html>

    
      
      








Related examples in the same category

1.'direction' Syntax and Note
2.'direction' Possible Values
3.'direction' is applied to