'units' defines the units by which the height and width attributes are measured : img width « Tags « HTML / CSS






'units' defines the units by which the height and width attributes are measured

   
    
<HTML>
<BODY>
<image id="myE" 
       src="http://www.java2s.com/style/logo.png" 
       width="243" 
       height="194" 
       units="px">
</embed>
</BODY>
</HTML>  
    
      
        
    
    
  








Related examples in the same category

1.Set width for an image
2.Image with fixed width and height
3.Shrinkwrapped image by setting both width and height to auto
4.Stretched Image by setting both width and height to 100%
5.Image auto width and height