I'm currently developing a project that incorporates bootstrap cards. There are 3 cards, each for a different column, and I need them to have equal heights. Here is how they currently look:
https://i.sstatic.net/Nau98.png
The B and C cards should occupy the remaining height of their respective columns. Adding the h-100 class achieves this, but results in the card-body filling the entire column height instead. Here's an example:
https://i.sstatic.net/Tu4xJ.png
However, my goal is to have the card-footer fill the rest of the column height, not the card-body. It should appear as follows:
https://i.sstatic.net/41Sf3.png
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<div class="container">
<div class="row">
<div class="col-md-4">
<div class="card">
<div class="card-body lead text-center">
<strong>A</strong>
</div>
<div class="card-footer text-muted">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam euismod nisl sed commodo
commodo. Donec nec lectus nec tortor feugiat accumsan id sit amet mauris. Nunc interdum
ut arcu nec lobortis.
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-body lead text-center">
<strong>B</strong>
</div>
<div class="card-footer text-muted">
Lorem ipsum
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-body lead text-center">
<strong>C</strong>
</div>
<div class="card-footer text-muted">
Lorem ipsum
</div>
</div>
</div>
</div>
</div>