1
I have the following HTML code:
<li style="background-image: url(fotoSYS)" class="produtos f-left margin-right-30 margin-top-30">
<div style="background-color:codigoSYS"class="marcador"></div>
<h2>tituloSYS</h2>
</li>
The CSS is like this:
.produtos{
width: 294px;
height: 349px;
background-color: #f1f2f2;
border: 3px solid transparent;
position: relative;
cursor: pointer;
transition: all .4s ease-out;
}
.produtosHover{
border-color: #dddb00;
box-shadow: 0 0 25px gray;
margin-top: 15px;
display: none;
}
Jquery is like this:
$(".produtos").hover(
function() {
$(this).children(".produtosHover").show();
},
function() {
$(this).children(".produtosHover").hide();
}
);
I want, that when I hover over produtos
, he applies the produtosHover
, that will just put an edge, a box and a margin-top, I used the children
because it will have more than one element.
I’ll do via Jquery, for the border-color
will be manageable by the customer.
But I don’t know what’s wrong =/
Where is the element with class . products?
– Slowaways
Felipe, can you fix the HTML to make the question clearer? I don’t see any class
.produtosHover
– Sergio