I am currently designing a navigation bar that includes a drop-down menu (with plans to add another one in the future). The issue I'm facing is that when the user clicks on the drop-down menu, it shifts all of the navigation links to the right. What I want is for all of the navigation links to remain static. I attempted to use fixed
positioning on the div
with an absolute
setting on the li
tags, but unfortunately Internet Explorer displayed the li
tags outside of the parent div.
My current solution involves using float:left
, however, this method has not delivered the desired outcome either. The problematic drop-down menu is labeled "Solace". Any assistance or suggestions would be greatly appreciated. To better illustrate my issue, I have created a demo which can be accessed via the following link: http://jsfiddle.net/xbB4M/1/.
Additionally, I have a secondary question. If this requires a separate post, please inform me and I will proceed accordingly. How can I implement a listener so that when a user clicks on the drop-down menu, I can then detect the next mouse click to automatically close the drop-down menu?