When I hover over an image, I want to display some text. I managed to make it work, but the text was expanding the size of the card. To solve this issue, I added a display none
to the text class.
I can't include all the code here, so here's a snippet from jsfiddle for reference: https://jsfiddle.net/Minirock/fgs7o2Lv/1/. The text I want to show is located under FORUM 1 and FORUM 2 in the fiddle example.
If you need further clarification on what's going wrong, please let me know. Below is the HTML code snippet:
<div class="card-body">
<div class="forum_title">FORUM 1</div>
<div class="row">
<div class="col-lg-8 category">
<div class="card card-chart image1">
<img src="http://lorempixel.com/500/150/nature/" alt="avatar_monde" class="img_monde" />
<div class="middle">
<div class="text">Post haec Gallus Hierapolim profecturus ut expeditioni specie tenus adesset, Antiochensi plebi suppliciter obsecranti ut inediae dispelleret metum.</div>
</div>
</div>
</div>
<div class="col-lg-2 category">
<div class="card card-chart detail">
NOM SUJET
<br/>
NOM POSTEUR
<br/>
HEURE
<br/>
<a href="#"> > LIRE LE DERNIER MESSAGE</a>
</div>
</div>
</div>
</div>