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


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

 

'height' Example



    
<html>
<body>
<p> 

<img id="myImg" 
     src="http://www.navioo.com/style/logo.png" 
     style="width:74; height:100">
</p>

<input type="button" 
       value="Reduce height" 
       onclick="myImg.style.height=50">

<input type="button" 
       value="Restore height" 
       onclick="myImg.style.height=100">

</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
» height