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


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

 

'left' Example



    
<html>
<body>
<p>
<img id="myImg" 
     src="http://www.navioo.com/style/logo.png" 
     width="100"
     height=100
     style="position:relative">
</p>
<input type="button" value="Set left property to 100" onclick="myImg.style.left=100">
<input type="button" value="Set left property to 200" onclick="myImg.style.left=200">
<input type="button" value="Restore image position" onclick="myImg.style.left=0">
</body>
</html>

    
      
      



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo CSS Attributes and Javascript Style Properties
» left