2
Here’s the deal, I got a div
that holds my li
, and within those li
has an image and three li
with texts, my goal is to make sure that when the mouse is passed on top of that li
, the image change giving an effect hover
and the text also change the color, even not passing the mouse over them, good and so to the image also when passed the mouse by the texts, giving the effect hover
in the images
<ul>
<li>
<a href="javascript:void(0);">
<div class="box">
<ul>
<li><img src="images/fundo.png" border="0"/></li>
<li><h1>FUNDOS</h1></li>
<li><span>FUNDOS PARA XAT</span></li>
<li><a href="#">VER MAIS</a></li>
</ul>
</div>
</a>
</li>
</ul>
<style>
ul li{
float:left;
}
ul li .box{
width: 200px;
height:200px;
}
ul li .box ul li img{
width: 100%;
height:100%;
}
.box ul li:hover img {
background: url(../images/fundo-hover.png) no-repeat;
}
.box ul li:hover h1,
.box ul li:hover span,
.box ul li:hover a{
color: red;
}
</style>
posted the piece of code I’m struggling with
– goio
in the father li in the case
li > a > box
, that when the person hovers the mouse over it, change the image’s Hover and the colors of the H1, span and the– goio