I have 6 col-lg-3
in my container. Each div
including another div
, h4
and p
.
Included divs have background-image
, and some properties in CSS.
And I want to change included div background-image
on hovering col-lg-3
div
But it just ignore :hover
and nothing happening.
Ive tried not only change background-images
, but change color
, add borders
, etc. But no response. Heres one of div.col-lg-3
...
.reasons .col-lg-3 div {
width: 99px;
height: 99px;
margin: 10px auto 5px auto;
background-size: 99px 99px;
background-repeat: no-repeat;
transition: 0.5s ease;
}
.community:hover div {
background-image: url('img/communityReverse.png');
}
<div class="col-lg-3 community">
<div style="background-image: url('img/community.png')"></div>
<h4>Lorem ipsum dolor</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</div>
.community:hover div{ ... }
seems not working, but for example .community:hover h4{ font-size: 30px; }
ok, no problem. I cant see what is wrong