Aligning Bootstrap 4 cards using d-flex
and align-self-stretch
for the cards works great.
But I'm struggling to make the part with the red border float to the bottom. Any suggestions using only Bootstrap 4 utilities?
https://i.sstatic.net/2VUME.png
<div class="col-sm-12 col-md-6 col-lg-4 d-flex align-self-stretch">
<div class="card shadow-sm mb-4">
<img src="https://placehold.it/500x300" class="card-img-top" alt="">
<div class="card-body">
<h5 class="card-title text-uppercase">Longer title here that wraps two lines</h5>
<p class="text-muted">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<div class="align-self-end border border-danger">
<p class="text-uppercase mb-0">Donors: 123</p>
<p class="text-uppercase">Funded: $1,234</p>
<a href="#" class="btn btn-info btn-block">View Details</a>
</div>
</div>
</div>
</div>