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

HTML / CSS » CSS » 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>

    
      
        
  
Related examples in the same category
1.The direction Property
2.direction:ltr; direction:rtl;
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.