I am facing an issue with a <div>
nested inside another <div id="redBox">
. I want the inner div
to have display: inline-block
when a user hovers over an img
. Here's what I have tried:
img.icnLocation:hover ~ .div_icnStamp.icnLocation {
display: inline-block;
}
Strangely, this nested div
is not accessible when it's placed within the <div id="redBox">
.
You can check out this fiddle for better clarification on the issue. Unfortunately, I need to find a solution using only CSS without jQuery. Any assistance would be greatly appreciated. Thank you!