Quantcast
Channel: Active questions tagged flexbox - Stack Overflow
Viewing all articles
Browse latest Browse all 1323

Align items to bottom while maintaining stretch in flexbox

$
0
0

I'm using flexbox to build the following layout of cards

enter image description here

.card {    flex-basis: calc(100% - 40px);    border-radius: 4px;}.card__content {    padding: 25px;}.card__footer {    display: flex;    justify-content: space-between;    padding: 10px 25px;}

I'm trying to achieve that the card__footer is always aligned to the bottom. When I try by adding the following code, I lose my stretch and the items are not the same height anymore

.card {margin-bottom: auto;}

Any idea in what direction I have to look for a solution?


Viewing all articles
Browse latest Browse all 1323

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>