Support » Themes and Templates » CSS Max-Width problem in IE6

  • piginzen

    (@piginzen)


    Looks like I posted this in the wrong thread…

    I am using the MX4 theme and the max-width css tag associated with an image is not working with IE in OSX or Win… but works fine in Firefox… crossplatform…

    Is there a work around someone has found?

    Thanks

    this is what i have tried in my header.php:
    <style>
    entry img {width:expression(if(this.clientWidth>300)this.width=300);}
    </style>

    and this is in my css:
    .entry img {
    background-color: #ffffff;
    border: 1px solid #dddddd;
    /*-moz-border-radius:5px;*/
    padding: 4px;
    max-width: 334px;
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • Root

    (@root)

    Max width is not supported by IE.

    piginzen

    (@piginzen)

    I had thought so as well… but check out the MX4 theme on IE, it works there:
    http://www.mx4.info/weblog/

    Just not on my site…

    Has anyone else experienced this?

    I’d tried to contact the author of this theme, but have yet to get a reply in a day or so.

    ps. just tried adding this line to my css with no luck:
    width: expression(Math.min(parseInt(this.offsetWidth), 330 ) + “px”);

    piginzen

    (@piginzen)

    figured it out… thanks…

    IE really can suck the life out of you sometimes…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CSS Max-Width problem in IE6’ is closed to new replies.