'styleFloat' Example : styleFloat : CSS Attributes and Javascript Style Properties HTML CSS TUTORIALS


HTML CSS TUTORIALS » CSS Attributes and Javascript Style Properties » styleFloat »

 

'styleFloat' Example



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

    
      
      



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo CSS Attributes and Javascript Style Properties
» styleFloat