I am attempting to create an interactive effect where the sub-menu slides down only when the user hovers over a link within the main menu bar, rather than the entire list item. However, I have encountered a challenge: when I program the callback function to slide up onmouseout, the sub-menu slides up too quickly for the user to hover over it. It is imperative that I use padding on the list items instead of margins, which limits my options. Additionally, the sub-menu drops down even if any part of the list item is hovered over, not just the link itself. Any help or suggestions are greatly appreciated!
To see an example, please visit the following link: