Switch to full style
HTML code examples
Post a reply

Auto image size

Fri Feb 17, 2012 4:23 pm

Following is very simple example for automatic CSS image size .

Code:
<html>
<
head>
<
title>auto image size</title>
<
style type="text/css">
img.sizecontrol{
  width: auto;
  height: auto;
   
}
</
style>
</
head>
<
body>
  <center>
  <img class="sizecontrol" src="site_logo.gif" alt="sizecontrol" /> 
  
</center>
</
body>
</
html> 

 




Post a reply
  Related Posts  to : Auto image size
 Set image size as a percentage of the page size     -  
 Change Image File Size (Height And Width) While Uploading     -  
 Create auto numbered column in mysql query     -  
 Image-Viewer-Image Processing-Filters-Noise-enhancements     -  
 Move image in front of a background image     -  
 Array size to zero     -  
 get string size in c++     -  
 Nav button size     -  
 What is the size of this Structure     -  
 Get Directory size in java     -  

Topic Tags

HTML Image