PDA

View Full Version : How to turn off resizing of images in IE - IE ignores auto resize off


Lil
08-07-2006, 09:44 PM
Internet Explorer resizes my images in spite of following their instructions at
http://www.microsoft.com/windows/ie/ie6/using/howto/customizing/autoresize.mspx/
Firefox behaves properly.

The scenario is as follows. I have a div area that I dynamically fill (JavaScript) with images of various sizes, all larger than the div. “Firefox” does not change the image size on display and properly displays the image as delivered to the browser. Microsoft IE resizes the image, distorting it on display. Does anyone know how to prevent IE from resizing the image? Setting the image width and height does not help.

The div area appears as follows:
<div id="dynamicImageArea"
oncontextmenu="return false"
style="height: 780px; width: 855px; overflow: auto">
</div>

Thank you.