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






'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">
     Move the mouse pointer here
</p>
<button onclick="myImg1.style.styleFloat='right'">Change float to right</button>
<button onclick="myImg1.style.styleFloat='left'">Change float to left</button>
<button onclick="myImg1.style.styleFloat='none'">Change float to none</button>
</body>
</html>

    
      
      








Related examples in the same category

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