I'd like to achieve a hover effect on my image where the text appears in place of the image, without using jQuery or JavaScript.
#content .description {
position: relative;
bottom: 30px;
left: 0px;
display: none;
}
#content:hover .description {
display: block;
}
<div id="content">
<img src="sample.png" class="hover-effect" height="200px" width="200px/>
<p class="description">text content will go here</p>
</div>