I am trying to have it so that a little colored box comes up when you hover over an image.I have recreated the scenario here: http://jsfiddle.net/UaXUS/
The div shows up properly when I remove the visibility:hidden
attribute, but not when I try to use the hover part. Any suggestions as to how to fix this? I have also tried display:none
going to display:inline
or display:block
, but no luck
Replace
#content:hover + #hoverbar{
visibility:visible;
}
with
#content:hover > #hoverbar{
visibility:visible;
}
or
#content:hover #hoverbar{
visibility:visible;
}
The plus sign '+' is for siblings. In your case the div is nested.
Here the updated jsfiddle
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With