ceeb — 2010-01-22T10:47:18-05:00 — #1
Here's a little problem we've been discussing over at the blogs...
The issue affects IE6 and IE7 and IE8 in compatibility mode.
Copy the test page code from here:
cupidstoejam — 2010-01-22T11:32:50-05:00 — #2
ok, try and take AP off the header, then adjust the top margin of right col to line up with the others. you may need to tweek margins, but it works on my end
ryanreese — 2010-01-22T12:07:39-05:00 — #3
Hi, the header has to come last in the source code because the columns are floated :). This is a known bug.
<div id="left">1. Left column</div>
<div id="middle">2. Middle column</div>
<div id="right">4. Right column</div>
<div id="footer">5. Footer</div>
<div id="header">3. Header</div>
ryanreese — 2010-01-22T12:30:41-05:00 — #4
I only tested my solujtion in IE6, so IE7 will probably need the clear:both; on the header if just changing around the HTML doesn't work :).
paulob — 2010-01-22T12:40:44-05:00 — #5
Usually if the absolute element follows a float in the same context you would also need the clear:both as well as putting the absolute element at the end of the current stacking context as Ryan mentioned.
ryanreese — 2010-01-22T12:44:35-05:00 — #6
I just added that clear:both; comment but I don't think it will be needed because I put the header (in my code) after the clear:both'd footer.
I just added that clear:both; comment to be thorough
co_ador — 2010-01-22T13:57:50-05:00 — #7
i have come acrros similar issues with Absolutes positioned elements in IE6.
paulob — 2010-01-22T13:59:12-05:00 — #8
Same issue and same fixes as shown above.
I also documented this way back in 2004
co_ador — 2010-01-22T14:05:20-05:00 — #9
I have to put my hands into that thanks.