2
I have several elements inside each other and when I hover the mouse with the Hover it adds an edge to identify the element, however, as all have the same class, all items grab the edge.
I want only the element positioned with the mouse to reach the edge, this is possible?
Follow example of the problem:
.test
{
width: 100%;
float:left;
padding-top: 20px;
padding-left: 20px;
padding-bottom: 20px;
}
.test:hover
{
outline: #000 1px solid;
}
<div class="test">
teste
<br>
<div class="test">
teste2
<br>
<div class="test">
teste3
<br>
</div>
</div>
</div>
Yeah, I know how it works and I used it here because I need to use it and I don’t know anything like it, maybe who knows, but anyway, I’m going to go to Javascript anyway... Thanks
– Caio Gomes
@Caiogomes ok. Yes, as long as there are relatives/descendants with the same class this problem will arise. I added a suggestion with Javascript/jQuery if it is useful.
– Sergio