I'm facing a challenge with a flex container that contains flex children. Within each flex child, there are two stacked divs, the first of which has an unknown height. My goal is to make the second div fill the remaining height available. I've been searching for solutions using flex properties, but I'm unsure how to implement them since the parent of these two divs is also a flex child.
Here's a simplified version of the code:
<div class="flex-parent-row">
<div class="flex-child">
<div class="auto-height"></div>
<div class="i-want-this-one-to-fill-remaining-height"></div>
</div>
...more flex children...
</div>
For now, placing the ".auto-height" div inside the ".i-want-this-one-to-fill-remaining-height" div is not an option.
Any assistance would be greatly appreciated! Thank you!
EDIT: I've created a comprehensive Fiddle: https://jsfiddle.net/vanden1976/dLg20x4s/26
EDIT-2: Issue resolved! Thank you for your suggestions! Here's the updated Fiddle with the solution: https://jsfiddle.net/vanden1976/dLg20x4s/29