Previous Message
Next Message

drop-down menu doesn't work right in Opera

Sent by Andrew Gregory on 29 August 2004 11:11


On Sun, 29 Aug 2004 00:14:06 +0300, Andrei Gheorghe [EMAIL-REMOVED]>  
wrote:

> I just made a dropdown menu based on nested <ul>'s, and i'm having a
> bit of a problem i can't seem to understand... In IE, Firefox and
> Mozilla it works fine, but in Opera, when I move the mouse out of a
> item that has a submenu, that submenu doesn't "disappear"... It's
> image stays there... You can find my menu here
> http://metawire.org/~foxx/menu.html ...

Change your "left: -999em" to "visibility: hidden" in the CSS and JS. And  
the "left = "auto";" in the JS to "visibility = "visible";". Works for  
Opera 7.54, FF 0.9.3, and IE6.0 (all Win2k).

I must admit a preference for "pure CSS" menus as described by our list  
chaperone in his "More Eric Meyer on CSS" book. Particularly in relation  
to using "whatever:hover" from  
<http://www.xs4all.nl/~peterned/csshover.html> to eliminate menu-specific  
JS code. See also:

<http://www.alistapart.com/articles/dropdowns/>
<http://www.htmldog.com/articles/suckerfish/>
<http://devedge.netscape.com/viewsource/2003/devedge-redesign-js/>

HTH,
-- 
Andrew Gregory, <URL: [EMAIL-REMOVED] >
<URL: http://www.scss.com.au/family/andrew/ >
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: