I'm trying to make a menu that opens when mouseover opens the corresponding submenu. In this case, the menu "blouses and shirts" should be with its submenu closed, opening just by hovering over it to show the short sleeve options and the others. but when I open the screen in my browser, the submenu already appears below as if it were there static, which makes me assume that CSS is failing in this function
In css I have
.menu-departamentos li ul {
display: none;
}
.menu-departamentos li:hover ul {
display: block;
}
and in HTMl I have
<section class="menu-departamentos">
<h2>Departamentos</h2>
<nav>
<ul>
<li><a href="#">Blusas e Camisas</a></li>
<ul>
<li><a href="#">Manga curta</a></li>
<li><a href="#">Manga comprida</a></li>
<li><a href="#">Camisa social</a></li>
<li><a href="#">Camisa casual</a></li>
</ul>
<li><a href="#">Calças</a></li>
<li><a href="#">Acessórios</a></li>
</ul>
</nav>
</section>