-2
I have the following:
<div>
<ul class="menu-top-header-main-right">
<li><span class="icon-procurar"></span></li>
<li>Entrar</li>
<li>Inscrever-se</li>
</ul>
</div>
and my css:
.top-header-main header div ul li span{
display: inline-block;
padding: 0 .8em;
width: 20px;
height:24px;
vertical-align: middle;
}
.top-header-main header div ul li:not(.icon-procurar):hover{
border-bottom: 3px solid #2BDE73;
cursor: pointer;
}
I intend to exclude the span
of :hover
but it doesn’t seem to work.
Any help? Thank you.
Better define what would be "delete Hover span".
– Woss
When you say delete, you don’t mean for example that you want to assign the 'display:None;' property to the element, thus making it "disappear" from the screen.
– Marcus Italo
As you can see in the code, span is inside li, so by applying :Hover, span also takes the attributes that are defined in :Hover, but I wish span wasn’t just an image
– C-lio Garcia