IE6 min-widths and min-heights

Posted by Rob CornishPostMay 7, 2008Date

Using the following code you can get IE6 to work with min-width and min-height.

* html #wrapper
{
     width:expression((d = document.compatMode == "CSS1Compat" ? document.documentElement : document.body) && (d.clientWidth > 1280 ? "1280px" : d.clientWidth < 1024 ? "1024px" : "auto"));
}

Note: Place this within an if IE 6 condition.


2 Comments »

  1. Hey thx!

    I sometimes got a frozen IE6 frame while rescaling, but if you use different values (like this: 1280 ? "1282px") this problem will be fixed.

    Hope I could help, you did certainly :)

    Comment by gerard — November 25, 2008 @ 2:56 am

  2. Hi Gerard, thanks for the info! It's always useful to know, glad this came in handy!

    Comment by Rob Cornish — November 25, 2008 @ 11:15 am

RSS feed for comments on this post. TrackBack URL

Leave a comment

Tags
Flickr
DSC_0207DSC_0206DSC_0205DSC_0197
© 2008 dlnqnt - Admin - Login