I\'m have containers that should change height dynamically depending on the content. For all containers in a given row, the bottom text should all be fixed to the bottom re
If you change your .caption
code to:
.caption {
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
and then add:
.flex-item {
display: flex;
flex-direction: column;
}
You need to make the parent a flex container:
.flex-list .flex-row .flex-item-wrapper .flex-item {
width: 100%;
height: 100%;
display: flex; /* new */
flex-direction: column; /* new */
}
Then, tell the .caption
element to fill available height:
.caption { flex: 1; }
Revised Fiddle
It's a common question. Here are other options: