I want a flex container that does not have an explicit height set with all of its children having equal height. I can't quite figure out how to implement this.
I can get it to work if the flex container has a height set, but I want its height to be dynamic based on the children. Again, they should all be equal (and calculated based on the highest child). I don't want to have to rely on js to make this layout work.
Here's a fiddle for what I have so far: https://jsfiddle.net/fL1gk17L/1/
HTML
<div id="wrapper" class="wrapper">
<div class="inner">Some text</div>
<div class="inner">Some text</div>
<div class="inner">Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text
Some text Some text </div>
</div>
CSS
.wrapper {
display: flex;
flex-direction: column;
width: 300px;
}
.inner {
outline: 1px solid black;
flex-grow: 1;
flex-basis: 0;
}