I need an image to appear when the overall container is hovered. I've tried accessing the class directly on the image and I've tried nesting the image in a div with no success. I have a feeling it is regarding the selectors ~, >, etc. but I cannot track this down for the life of me.
Here is my HTML Code:
<div class="container">
<div class="info">
<div class="sigma">
<img src="http://www.wrightslaw.com/blog/wp-content/plugins/wpdiscuz/assets/img/plugin-icon/icon_info.png" align="right" style="margin: 7px 0;" />
</div>
</div>
<div id="chart1" style=""></div>
</div>
Here is the CSS:
.container {
width: 300px;
height: 300px;
background-color: #eceded;
position: relative;
}
.info {
width: 290px;
height: 30px;
}
.sigma {
display: none;
}
.container:hover~.sigma{
display: block;
}
I also have a JSFiddle: http://jsfiddle.net/sthompson/eovn8o3p/2/