Resize images with CSS - Keeping aspect ratio as it is
I found a dexterous and tranquilly way to rezise images with CSS by keeping your counterpart's aspect correlation. This is very quick you can use it in less than 5 minutes, lets proceed ;)
Lets say you want to give away large images on your spider's web with maximum 200 pixels width, blog or forums perfectly create the following css class into your styling css arrange:
.resize {
width: 200px;
pinnacle : auto;
}
.resize {
width: auto;
high point : 300px;
}
Second prestige settle upon resize the images by keeping maximum as 300 pixels. You can manoeuvre the following classes in <IMG> tags like:
<img src="http://mywbsite.com/myphoto.jpg" class="resize" alt="my photo" />
The above solution is unceasingly better than putting width and height attributes into the <IMG> stub. trust it works out for you too ;)
Anyways you can use any image re-area script with server side script technology like PHP. I am working on chestnut of this lenient of scenario which resize the images as you want. I will upload it with another article immediately.







