David Dorward / 2003-09-10 20:11:[color=blue]
> Paul Trautwein wrote:
>[color=green]
>>I did find an obscure reference (
http://www.w3.org/Style/CSS/) commented
>>in the source code of one of the styles used, that mentions problems with
>>"fixed" positions in IE6, but no solution that I was able to interpret.[/color]
>
> Problems? MSIE doesn't support it at all. It treats it as position: static.[/color]
The problem isn't that MSIE wouldn't support 'fixed' value but that
the support is buggy and it interprets that as 'static' as you
mention. If it didn't have support, the correct behavior would be to
ignore the rule. Think following example:
..foobar {
position: absolute;
position: fixed;
}
Any correctly implemented browser that supports either 'absolute' or
'fixed' would result in more or less acceptable rendering. If the
browser didn't support 'fixed' the element would still be correctly
positioned ('absolute') but it simply wouldn't "float" above the
content while scrolling the page. However, MSIE happily "supports"
the 'fixed' value and that support is so buggy it seems that the
result is 'static'. The element will be positioned to entirely
different place.
Easy fix:
..foobar { position: absolute; }
html > body .foobar { position: fixed; }
MSIE won't follow the rules on the second line because its support
for CSS2 selectors is lacking.
--
Mikko