How can I make Flexbox children 100% height of their parent?

Use align-items: stretch

Similar to David Storey’s answer, my workaround is:

.flex-2 {
    display: flex;
    align-items: stretch;
}

Note that height: 100% should be removed from the child component (see comments).

Alternatively to align-items, you can use align-self just on the .flex-2-child item you want stretched.

Leave a Comment