'styleFloat' Example : styleFloat « CSS « HTML / CSS

HTML / CSS » CSS » styleFloat 
'styleFloat' Example

    
<html>
<body>
<img id="myImg1" 
     src="http://www.java2s.com/style/logo.png" 
     border="0" 
     style="float:left">
<p style="font-family:verdana; 
          width=200; 
          cursor:hand">
     some text.<br>
     www.java2s.com
</p>
<button onclick="myImg1.style.styleFloat='right'">Change float to right</button>
</body>
</html>

    
      
      
Related examples in the same category
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.