How do you make cards of equal height in Bootstrap?
<div class="row row-cols-1 row-cols-md-3 g-2">
<div class="col"><div class="card h-100"><div class="card-body">Short text</div></div></div>
<div class="col"><div class="card h-100"><div class="card-body">This card has more text, so it is taller, and the other cards become the same height.</div></div></div>
<div class="col"><div class="card h-100"><div class="card-body">Short</div></div></div>
</div>
Live preview
The preview is narrow, so the cards are stacked. On a wide screen they are in a row with the same height. See Cards.
Learn more about the similar topics:
| Tutorials |
|---|
| Bootstrap Buttons |
| Bootstrap Alerts |
| Bootstrap Badges |
| Bootstrap Cards |
| Bootstrap List Group |
| Bootstrap Progress Bars and Spinners |
| Bootstrap Icons |