Kara Marsee wrote:
> <http://www.foursightcreative.com/clients/pdl/teen-template.html>
> The bug that happens in IE 6 is once you rollover these drop-down
> type nav items, then go to one below, then back over the one above
> it, parts of it are unviewable (the parts that are supposed to be
> above the nav below it)...this is really hard to explain by typing,
> so I hope this makes sense, and if it doesn¹t, please view in IE 6
> and see if you can recreate this.
Sure enough, it's one of IE/win's stacking bugs playing tricks on you.
IE/win simply can't stack absolute positioned elements properly, and
seems to be disturbed by the z-index altering done by the script.
Probably a mistake made to the script itself.
Same in all IE/win versions - including IE7.
This stacking bug hits many drop-down menus, so it is quite easy to
spot. A bit harder to fix though, as such menus come in all shapes and
sizes.
> Please, does anyone know of a fix for this?
Paste in this little "monster" verbatim at the very end of
SpryMenuBarVertical.css...
@media screen {
* html ul.MenuBarVertical ul {position: relative!important; float: left;
margin: -10px -1000px -1000px 80px; display: inline;}
* html ul.MenuBarVertical {position: static!important; }
*:first-child+html ul.MenuBarVertical ul {position: relative!important;
float: left; margin: -10px -1000px -1000px 80px;}
*:first-child+html ul.MenuBarVertical {position: static!important; }
}
...and IE/win will behave itself.
What the little "monster" does is to override all references to
positioning IE/win can't handle, which also makes IE ignore all z-index
trickery in the script and CSS. I then fake the entire positioning
with "removed floats"...
<http://www.gunlaug.no/contents/wd_demo_float_03.html>
...which IE/win handles quite well.
I use the "off screen" 'left: -1000em;' from the original styles to make
the drop-downs disappear when they should - using relative positioning,
and "removed floats" take up zero space - just as absolute positioned
elements, so they can disappear completely and/or overlay other elements
just fine.
Two sets of identical styles but using different hacks, since IE7
doesn't understand the old '* html' hack but has mostly the same bugs as
IE6 under its many patches.
Everything is tested in IE6 and IE7, and other browsers for comparison.
regards
Georg
--
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/