I have some flexboxes where I'd like to include some footer information in each. I'm trying to get the footer to align to the bottom of the flexbox no matter how short or long the content actually is. I've tried playing with auto margins and the flexbox settings, but can't seem to find a way to do it.
This is my original setup:
.card-wrapper {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
}
.card {
flex: 0 1 100%;
margin: 0 10px 10px 0;
border: 1px solid grey;
border-top: 10px solid black;
box-shadow: 1px 1px 3px #888;
}
.card-content {
padding: 10px;
}
@media all and (min-width: 30em) {
.card {
flex: 0 1 30%;
}
<div class="card-wrapper">
<a href="#" class="card">
<div class="card-content">
<h2>Title</h2>
<p>Content</p>
<p>This should be the footer.</p>
</div>
</a>
</div>