max-width snippets

How to get min-width and max-width working in IE 6

Tagged ie6, hack, min-width, max-width  Languages html

Far from optimal, but should work in most cases:

<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="ie6-is-a-shitty-browser.css" />
<![endif]-->
#wrapper { 
   width:expression(document.body.clientWidth < 950 ? "950px" : "100%" ); 
}

Note that users might get security warnings.