I have several elements inside one another and when I hover the mouse, it adds a border to the element's identification, however, as everyone has the same class, all items take the border.
I want only the element positioned with the mouse to get the border, is it possible?
Here is an 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>