I'm attempting to scale my images precisely using CSS:
HTML:
<div id="thumbnail-container">
<img src="sample-pic.jpg"/>
</div>
CSS:
#thumbnail-container img {
max-height: 230px;
max-width: 200px;
}
In this scenario, the image sample-pic.jpg
is sized at 320x211.
While Firefox 11.0 resizes the image as expected based on the CSS rules, Internet Explorer 9 ignores the constraints and displays the image at its original size of 320x211.
Is there a way to adjust the HTML/CSS so that both IE 9 and FF 11.0 respect these maximum dimensions? Thank you for your help!