totalstranger said the following on 8/28/2006 5:57 PM:
Then use position:fixed in IE7 and let IE6 users migrate.
Or, something like this:
<div style="top:0px;left:0px">Top Div</div>
<div style="top:20px;left:0px;overflow:scroll">Put your page contents
here</div>
And let them scroll the div element instead of the body.
You can use IE's proprietary conditional comments to select the proper
CSS and make settings based upon the version of IE that's executing. The
comments are not processed by other browsers. I implemented this when I
wanted to get rid of my javascript sniff routine. This lets my site work
for most modern browsers.
A sample of what I use on my site follows. If it's IE6/5 the IE5.css
will cascade and override the Default.css.
<LINK REL="stylesheet" TYPE="text/css" HREF="CSS/Default.css"
<!--[if lte IE 6]>
<LINK REL="stylesheet" TYPE="text/css" HREF="CSS/IE5.css">
<![endif]-->