Image width="auto" not working in IE
I am applying width auto to the images which is not working in IE9.
How can i get the width and height of the image on load so that i can apply width and height to the images dynamically.
You shouldn't be trying to size images dynamically - they already have a width and height intrinsic to the image and if you want to resize them from that you should use a graphics program to do so. Browsers are not designed to resize images and will make a mess of the image if you try to display it at anything other than its actual size.
So if you want to automatically resize images then use server side processing that calls a proper graphics routine to do it.
|All times are GMT +1. The time now is 12:30 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.