Ian Young wrote: > Been developing the Holy Grail code from ALA. Added drop down menu to it > which I never had any problem with. > > In IE, the left column jumps into centre on hovering over the menu > > Stripped out version is at > http://www.iyesolutions.co.uk/templates/new-dol/dol-test.html > > I would be interested in your thoughts on this one.
This is the holy grail example 4, only a link with a background change on hover is added: http://www.satzansatz.de/cssd/tmp/holy4-wrong.html In IE6, when you hover over the link, the left column jumps to the right. This should be similar to your situation. The ALA article by Matthew Levine says: "The negative margin pulls the left column too far to the left in IE6... We need to push it back to the right ... * html #left { left: 150px; /* RC width */ } The reason we need to use the width of the right column involves a bit of algebra. I won’t bore you with the details; ..." [1] Whenever an author needs a paragraph which reads he don't want to bore me with the details he should better use the words for one sentence that explains it. I do not understand it. At the risk of boring you: I think the bug you've encountered is partly related to the quirky percentages bug [2], but I think that's not all. And IE7 adds new problems. Percentages on margins skip one generation in IE: the margin-left:-100% is calculated with respect to the padding edge of html, not body. So initially, this margin becomes too wide. See the holy4 without his fix: http://www.satzansatz.de/cssd/tmp/holy4-without.html The left column is thrown out of the window (you may have to shrink the window a little to see the effect on reload). And when you hover over the link, the left column is reflown to the correct position. This is why this kind of static fix is awkward: the quirky percentages bug is dynamic. You cannot correct it with a fixed offset, since the bug corrects itself on hover-reflow, causing an overshooting compensation by the left:150px. Another fix to the problem requires an additional wrapper of body #innerwrapper { zoom:1; /* haslayout, width:100% would be the same */ position: relative; } The position:relative is only needed if you want to prevent the new flip-side bug in IE7beta. I don't know if this IE7 is so feature complete that it will deliver with this bug or not. See http://www.satzansatz.de/cssd/tmp/holy4-corrected.html for a quick attempt. Let me know if it fixes the problem at your side. I'd like to say that the quirky percentages does not explain why we see what we see. For example, one could ask why the percentage margin of the right column is not affected. I simply do not know. Ingo [1] http://www.alistapart.com/articles/holygrail/ [2] http://positioniseverything.net/explorer/percentages.html -- http://www.satzansatz.de/css.html ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
