I am trying to create simple css menu with the following structure:
<section id="navigation-bar" class="container">
<nav class="pull-left">
<ul class="multiColumnMenu">
<li>
<a href="#">Menu 1</a>
<div class="column-menu">
<ul>
<li> Sub menu 1 </li>
<li> Sub menu 2 </li>
<li> Sub menu 3 </li>
<li> Sub menu 4 </li>
<li> Sub menu 5 </li>
</ul>
</div>
</li>
...
</ul>
</nav>
</section>
I trigger the menu with this css
.multiColumnMenu > li:hover .column-menu{
display: block;
}
The menu shows up but I can't hover over it. When I hover over it, it goes away.
margin-top:8px;and it will work. Thecolumn-menuneeds to be near the li so these 8px gap makes the mouse go out of yourlithere fore the :hover state is lost.