Quote:
Originally Posted by NJ
min-width and max-width would be great tools if IE/Win would support them consistently!
|
I love min-width max-width

IE6 is a bugger but I feed it width:expression() and it's happy. The full code is:
Code:
* html .container {width:expression(document.body.clientWidth < 780? "780px" : document.body.clientWidth > 1270? "1270px" : "auto");}
where
* html targets IE6;
.container is the class name of my div;
document.body.clientWidth < 800? "800px" is the min-width (800px in this case); and
document.body.clientWidth > 1280? "1280px" is the max-width (1280px in this case)