|
spinningjennie -> RE: Floating menu position wrong in IE6 (8/20/2007 2:32:24)
|
Many thanks Tailslide for unravelling this one for me, plus the mouseover shift! I'm very grateful. I’ve tried to carefully work through each change Tailslide made to see the effect it had. It seems to me that the changes that were key to the menu aligning correctly and not going to 2 ‘rows’ were as follows: In the Stylesheet you: 1. changed % width of #menuh-container from 80% to 100% and removed width of 10% allocated to margin-right and margin-left. The containing div was already 80% width, which was all that was required. 2. removed absolute positioning and left and top measurements for #menuh-container, which was critical for FireFox. 3. removed margin-left 3.75% for #menuh and added background colour of black to #menuh Note: I found that if I changed #menuh margin-left: 3.75%; to: padding-left: 4%; and made the width: 96% that I was able to space my menu a little away from the left edge. This worked fine in IE6, Firefox and Opera. I am puzzled as to why this worked, however, because I thought that it was usually best to use margins rather than padding, which is handled differently by the browsers. Q: Does it have something to do with the widths being successfully controlled by the containing div width? To correct the slight shift in the links on mouseover in IE6, you: * changed margin width from % to ems This was a great discovery for me, because noticing this shift required careful observation. Question: 1. I notice you thoughtfully made the link paths to my thumbnail and related larger images absolute, so that they included the precise location on the live website. What advantage does this provide? Changes that didn’t seem to be critical to menu positioning but perhaps there were other reasons for them: 1. 2 sniffer code changes (just before the closing head tag). (FYI: The code for this I got from Sperling 2. Added to #container {position: relative} I guess the above is my analysis of your insights, in case it helps someone. It helps me to jot things down. Many thanks yet again! spinningjennie
|
|
|
|