Forum Moderators: open
Thanks,
Khem
this could be related to
until I scroll down or refresh the page
fine in NS/Moz/Opera...
var refreshed;
if (NOT refreshed AND browser="IE") then
refresh();
refreshed = true;
end if
Hoping be useful,
Herenvardö
After some testing, I ended up using the IE conditionals:
<!--[if IE]>
<style type="text/css">
#container, #floated-item {position:relative;}
</style>
<![endif]-->
Note that neither of these were the things that were misbehaving, and making only one of the items position:relative did not fix it. The border/background problem was in a div in the container div, and the floated item is outside the container div in the document flow.
I stopped using the conditionals and put the code on the css page itself, using some ugly css hacks:
/* hide from ie mac \*/
* html #content, * html #menu, * html .floatRight, * html .floatLeft {position:relative;}
/* end hack */
This provides an equivalent functionality to putting the IE conditional on each page : if IE (in other words, it activates only for IE's that can read it, I believe 5x and 6, and only on windows IE's. Read more on the peekaboo bug here [positioniseverything.net]
The peekaboo bug is really serious, I hadn't run across it as a serious display problem in IE before my last site, and some of the fixes make it even worse, by the way, until you find the right combination. It manifests in a few other ways too that I didn't see documented, with borders/padding, on a:hover, very strange, makes me wonder increasingly if using floats is really worth it in many cases. The fixes need to be escaped for MSIE windows since they will break other browsers in some cases, test carefully.
The line-height hack makes it too difficult to keep track of the document display in the cascade, I didn't test the setting p height to 1px for IE, that might be the best solution.
The ironic thing was I was using positioned CSS when my first instinct was to use a 2 columned table, but I decided to keep plugging away at the positioned CSS since it's the only way to learn all these bugs and hacks, had I used the table my time to get the page fully stable would be about 20 times less, literally, or more, it gets hard to estimate after a while.