0
In CSS has way of passing the mouse on an element, do display: block in another as is done in JS?
The object is that I have the following structure:
<ul class="menuAdmin centralisado">
<li>
<label>Cadastros</label>
<ul>
<li><a href="?inserir&cliente">Clientes</a></li>
<li><a href="?inserir&produto">Produtos</a></li>
</ul>
</li>
<li>
<label>Listagens</label>
<ul>
<li><a href="?listar&clientes">Clientes</a></li>
<li><a href="?listar&pedidos">Pedidos</a></li>
<li><a href="?listar&produtos">Podutos</a></li>
</ul>
</li>
</ul>
I need to do that by passing the mouse for example on the label Listings, ul below it, that will be with diplay: none, become display: block
there is the
:hoverwith the operator+. ex:label:hover + ul, but take a look at the link @sam mentioned– Lucas
sorry but I could not find in the answers where is the mouseover and display:block placement in the brother element
– Carlos Rocha
thus: ul.menuAdmin li label:Hovet + ul { display: block; } ;?
– Carlos Rocha
yes, but it’s
:hoverand not:hovet– Lucas
I know, it happens. kkk, thanks!
– Carlos Rocha