While exploring a Bootstrap example utilizing the card-deck
and card
classes (Pricing example), I pondered over how to align buttons correctly when one list has fewer items than others.
https://i.sstatic.net/IGN7K.png
I aim to vertically align all buttons (at the bottom of each card) but have struggled to find a solution. Attempts included using the .align-bottom
class, wrapping the button in
<div class="align-text-bottom">
, and considering suggestions from this question about adding space. However, none of these methods provided the desired outcome (especially with variable spacing).
Even wrapping in
<div class="card-footer bg-white">
did not achieve the intended alignment at the bottom of the card, instead creating an unwanted border around it.
If anyone has a creative solution, please share!
Edit: A similar problem is demonstrated in this jsfiddle.