What browser are you using? I notice what you are talking about on the demo page but, it is more like a 1px imaginary (invisible) space. In IE 6 it only creates a momentary flash of the drop down if you get your mouse in just the right spot and only if you are traversing from the drop down up to the trigger. In Opera 9.01 and FF 1.5.0.7 it seems to make the drop down disappear if you get your mouse directly over it going in either direction. In all cases it requires precise control of the mouse, including the ability to hold it at just the right vertical coordinate for at least a short amount of time, to even notice it. I'm thinking that in your implementation you have done something that increases this space or that you are using a different browser.
It would help us to help you if you could provide a link to your page and the details on the browser(s) and OS used.
If you give a negative top margin here (red):
Code:
.dropmenudiv{
position:absolute;
top: 0;
border: 1px solid #BBB; /*THEME CHANGE HERE*/
border-bottom-width: 0;
font:normal 12px Verdana;
line-height:18px;
z-index:100;
background-color: white;
width: 200px;
visibility: hidden;
margin-top:-5px;
filter: progid:DXImageTransform.Microsoft.Shadow(color=#CACACA,direction=135,strength=4); /*Add Shadow in IE. Remove if desired*/
}
It will move the drop down up and make this even less likely to be a problem. If done right, there should be only a 1px overlap of the trigger by the drop down. This will not eliminate the effect I mentioned entirely. But, it will reduce it to the flickering effect in all browsers (like in IE for the default version). Don't use any greater of a negative value than is absolutely necessary. -1px worked fine for the demo version here.
Bookmarks