I am attempting to design a 3 column div that maintains equal height for all responsive rows, each containing an ICON and information.
<div class="container">
<div class="row row-eq-height">
<div class="col col-4 border">
<i class="fas fa-home fa-5x"></i>
<span>Column1</span>
</div>
<div class="col col-4 border">
<i class="fas fa-file-invoice fa-5x"></i>
<span>Column2</span>
</div>
<div class="col col-4 border">
<i class="fas fa-exchange-alt fa-5x"></i>
<span>Column3</span>
</div>
<div class="col col-4 border">
<i class="fas fa-gamepad fa-5x"></i>
<span>Column4</span>
</div>
<div class="col col-4 border">
<i class="fas fa-users fa-5x"></i>
<span>Column5</span>
</div>
<div class="col col-4 border">Column6</div>
<div class="col col-4 border">Column7</div>
<div class="col col-4 border">Column8</div>
<div class="col col-4 border">Column9</div>
<div class="col col-4 border">Column10</div>
</div>
</div>
The div height should be based on the Icon size of the specific row only.
I aim to maintain all heights equal even when there is no Icon present.The Icon size is currently fixed at fa-5x. How can I adjust the size of the icon based on the browser size?
For example: sm-3x, md-4x, lg-5x, xl-6xAlignment of Icon and text.
I intend to place the text directly below the ICON, with both the ICON and text centered horizontally and vertically.