It works in Firefox, but not in IE6.
In theory, using height=”100%” in an IMG tag will make the image as tall as its container. In my document, the container is a DIV tag that also has its height set at 100% (in CSS):
In FF, whether the window is “restored” or “maximized” or “full screen,” the image is scaled to fit vertically — exactly what I want. In IE, on the other hand, I get vertical and horizontal scroll bars.
Any idea what is wrong with or missing from the above HTML? Other than complicated math and event procedures in JavaScript, any ideas on how to force IE to scale the image to the viewable window size?