-2
css: .menu {
display: block;
}
/* CSS quando o checkbox está marcado */
#bt-menu:checked~.menu {
display: none;
}
<div class="menuu">
<input type="checkbox" id="bt_menu">
<label for="bt_menu"></label>
<span></span>
</div>
<div>
<nav class="menu">
<ul>
<li><a href="#">home</a></li>
<li><a href="#">Serviços</a>
<ul>
<li><a href="#">criação de sites</a></li>
<li><a href="#">arte visual</a></li>
</ul>
</li>
<li><a href="#">cursos</a>
<ul>
<li><a href="#">java</a></li>
<li><a href="#">photoshop</a></li>
<li><a href="#">criação de sites</a></li>
</ul>
</li>
<li><a href="#">contatos</a></li>
</ul>
</nav>
</div>
in case I click to disappear and nothing happens, continues as if it were display:block
Ursula, the dial dial CSS
~
is used to find siblings of an element. In a tree hierarchy being siblings means having the same knot as parent or must be on the same level. In your example#bt-menu
is the son of<div class="menuu">
while.menu
is another’s son<div>
.– Augusto Vasques
Important you [Dit] your question and explain objectively and punctually the difficulty found, accompanied by a [mcve] of the problem and attempt to solve. To better enjoy the site, understand and avoid closures and negativities worth reading the Stack Overflow Survival Guide in English.
– Bacco