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


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

 

'width' Example



    
<html>
<body>
<img id="myImg" 
     src="http://www.navioo.com/style/logo.png" 
     width="132">
<br>
<input type="button" value="Shrink image" onclick="myImg.style.width='65'">
<input type="button" value="Restore image" onclick="myImg.style.width='132'">
</body>
</html>

    
      
      



HTML code for linking to this page:

    Related in same category :
Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo CSS Attributes and Javascript Style Properties
» width