I would like to display the contents of my extra_info div when I hover over the image of the dog.
I have seen syntax like :
.circular:hover + div.extra_info { display:absolute; } However I cannot get it to work!
Here is my code so far:
.circular { margin-top: 50px; position: relative; z-index: 199 !important; float: left; display: block; width: 50px; height: 50px; border-radius: 50%; border: 2px solid #ffffff; } .circular:hover { border: 2px solid #16D3AE; } .extra_info { display: none; } <img src=http://officialhuskylovers.com/wp-content/uploads/2015/05/Cute-dog-listening-to-music-1_1.jpg class="circular"> <div class="extra_info"> <h3>A lovely doggy woggy</h3> </div>
displayshould be likeblocknotabsolute,absoluteis forposition