When you hover over the image displayed within the
<div class="like absolute">
, the image within the <div class="balloons absolute">
doesn't appear.
<div id="container" class="relative">
<div class="like absolute">
<a href="#"><img src="http://www.simplemailerresponsive.bugs3.com/images/like.png" width="32" height="32" alt="Like" /></a>
</div>
<div class="balloons absolute">
<a href="#"><img src="http://www.simplemailerresponsive.bugs3.com/images/love_symbol.png" width="24" height="24" alt="Symbol" /></a>
</div>
</div>
In the code snippet above, div#container
acts as the parent <div>
, with "like" and "balloons" serving as sibling elements to each other.
CSS:
#container .like a img:hover ~ .balloons > a > img{
opacity: 1;
}
Visit the JSFiddle link to see this in action.