Good morning everyone!
I have <li>
in my project, I would very much like to use an image on the right side of EXIT of my <li>
, I did so:
<ul>
<li id="sair">Sair<div class="icons"></div></li>
</ul>
My CSS:
.icons{
width: 15px;
height: 14px;
background-position: 0px 0px;
position: absolute;
margin-top: -16px;
margin-left: 815px;
z-index: 5;
background-image: url("logout-px.png");
}
.icons:hover{
width: 15px;
height: 14px;
background-position: 14px 0px;
background-color: red !important;
background-image: url("logout-px.png");
}
#sair:hover
{
color: white;
background-color: red !important;
border-bottom-color: #a20000;
border-left-color: #a20000;
border-right-color: #ff6363;
border-top-color: #ff6363;
border-width: 3px;
cursor: pointer;
}
Images:
Without :hover
:
Hoverwithmouseon<li>
:
Hover with mouse on <div>
:
I wanted something that, just passing the mouse on <li>
done HOVER caught on everyone, even on <div>
, thanks!