View Full Version : Problem with IE and max-width

Mar 30th, 2010, 03:15 AM
Hello all! I'm having a problem. I recently made up an image viewer that resizes images when they're larger than 1125px wide. It works fine in Firefox, but when viewing in IE, all images are upscaled instead. Does anyone know a workaround for this?

This is my current code for IE.

<!--[if gte IE 5]>
<style type="text/css">

#page {

/* For Internet Explorer: */

width: expression(Math.min(parseInt(this.offsetWidth), 1125 ) + "px");



Thanks for any assistance!

Mar 30th, 2010, 10:21 AM
Could be wrong, but you might have better luck posting this in the Javascript forum http://www.codingforums.com/forumdisplay.php?f=2