I have a div
that has a background image, and when It got hovered, the div will be given opacity 0.7
<div>
<span>text</span>
</div>
Secondly I've a span that when I got hovered, I use show()
to overwrite its default css display:none
.
The problem is the opacity applies to the span
as well, so the text doesn't stand out as I expect. I tried to set span
to opacity 1 on the hover event, no luck with that.