Im trying to have multiple child elements of a flex box grow to fill the available height set by the max-height parameter, when flex-direction: column. This works intuitively with max-width and flex-direction: row allowing the elements to reflow when I resize the browser within the max-width specified. Here's some simple html which should work given my understanding of flex-box:
.child {
background: rgb(255, 255, 255);
border: 1px solid #999;
font-weight: bold;
text-align: center;
flex-basis: 1;
}
.vertical_flexbox {
display: flex;
flex-direction: column;
max-height: 200px;
}
<div class='vertical_flexbox'>
<div class='child'>1</div>
<div class='child'>2</div>
<div class='child'>3</div>
</div>
Am I missing something obvious? Thanks