Im experiencing some really wierd behaviour in IE7. I want to position my <body>
-tag relative.
If i type
body { position: relative; }
in my css file, my menu (which is position: absolute) doesn't work. But if i use
<body style="position: relative;">
It works. How can that possibly make a difference? There is not javascript that is removing the css attribute or something like that.
Was curious about this, but as the question stands @thirtydot's comment seems to be correct: the answer is that there is no difference. I've created this jsfiddle which renders as expected in IE7 (to be completely honest: I tested it with IE7 mode in IE9).
Here's the code:
The relevant CSS, with a few colors to visualize things:
Gives me, as expected:
It renders similar in IE9 and FF for me.