I'm working on a Bootstrap div container that is divided into three equal-sized divs. I've managed to set the widths to be equal, but I'm struggling to maintain equal heights as well. Additionally, I can't seem to figure out how to center the contents of the div both vertically and horizontally. Another challenge I'm facing is centering text that appears next to an image.
This is a snippet of my HTML code:
<div class="container-fluid">
<div>
<img src="https://image.ibb.co/cjLadR/icon_1.png" alt="icon_1">
<div> Test comments </div>
</div>
<div>
<img src="https://image.ibb.co/gDrgJR/icon_2.png" alt="icon_2">
<div> Test comments </div>
</div>
<div>
<img src="https://image.ibb.co/hm1Rk6/icon_3.png" alt="icon_3">
<div> Test comments </div>
</div>
</div>
You can view a demo on JsFiddle
Below is what I am aiming to achieve: