I am hiding a div with class .text with
div.text{
visibility:hidden;
}
This div is surrounded by another div with class .col3
<div class="col3">
<div class="image-box">
<div class="text"> test </div>
</div>
</div>
I want the visibility to change to βvisibleβ when I pointed col3
I tried
.col3:hover + div.text {
visibility:visible;
}
however, it does not seem to work that way. strange when i do
.image-box:hover + div.text{
visibility:visible;
}
It shows a text div when I find the image, but that is not what I want, I want it to show when I find the surrounding div ......
any help is appreciated ...
source
share