I found a quick and easy way to re-size images with CSS by keeping your image’s aspect ratio. This is very quick you can use it in less than 5 minutes, lets proceed.
Lets say you want to show large images on your web page with maximum
200
pixels width
.resize {
width: 200px;
height : auto;
}
.resize {
width: auto;
height : 300px;
}
Second class will re-size the images by keeping height as 300 pixels. You can use the following classes in <IMG> tags like:
<img src=”http://mywbsite.com/myphoto.jpg” alt=”my photo” />
The above solution is always better than putting width and height attributes into the <IMG> tag. Hope it works out for you too.
Anyways you can use any image re-size script with server side script technology like PHP. If you find any fast script, please share a link in comments.





Pingback: Summer Mittens Design » Blog Archive » Publk: Now and Upcoming
Pingback: 웹서버 최적화 Log… | Sonar & Radar
Pingback: Resize Images With CSS « WONGPAK Memo