1
I have some buttons that when I move the mouse, the background turns orange but the text and image do not change. Only when I step on the changing image.
I’d like you to change it once the div turns orange.
https://gist.github.com/FabricioDev/17b01f10f56bb35a7e80c2c02d7e767c/edit
<div class="col-md-1 MenuFav LinkFav1_PF" style="margin-top: -1px;">
<ul>
<li class="BotaoCorreios">
<a href="#" class="LinkFav1">
<span class="TextMenuFav">Correios</span></a>
</li>
</ul>
</div>
.BotaoCorreios
{
background-image: url('../img/icones/new2/correio_cor.png');
text-align: center;
display: inline-block;
background-position: center center;
background-size: cover;
width: 40px !important;
height: 40px !important;
color: #8B92B1 !important;
font-size: 12px !important;
font-family:sans-serif !important;
}
.BotaoCorreios li img
{
display: block;
}
.BotaoCorreios:hover
{
background-image: url('../img/icones/new2/correio_branco.png');
background-position: center center;
background-size: cover;
width: 40px;
height: 40px;
color: #fff !important;
font-size: 12px !important;
font-family:sans-serif !important;
}
.BotaoCorreios>li>a
{
background-image: url('../img/icones/new2/correio_branco.png');
color: #fff;
}
/* Fim Botão Correios */
.LinkFav1_PF
{
margin: 0 auto;
background: #fff;
width: 90px;
height: 75px;
padding-top: 10px;
padding-right: 15px;
}
.LinkFav1_PF:hover, .LinkFav1_PF.open, .LinkFav1_PF:hover>a, .LinkFav1_PF.open>a
{
background-image: url('../img/icones/new2/modulos_branco.png');
text-align: center;
display: inline-block;
background-position: center center;
background: rgba(249, 166, 74, 1);
color: #fff !important;
width: 90px;
height: 75px;
}
What is the class of list items? Knowing this data could do something like: . item_de_list:Hover img { background:white }
– Marlysson
Would Botaocorreios?
– fabricio_wm
You can explain this to me, @Marlysson?
– fabricio_wm
You want to change the style of a child button element ? if you are using the selector . button:first-Child {///changes the color}
– AnthraxisBR