View Single Post
  #17 (permalink)  
Old 06-18-2009, 11:50 AM
Modified Modified is offline
WebProWorld Member
 
Join Date: Jun 2009
Location: Bellville
Posts: 56
Modified RepRank 2
Default Re: CSS div problem - widths and scrolling

Quote:
Originally Posted by NJ View Post
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)
Reply With Quote