In the following example, using flex-box layout, I need the black boxes' height to be 50% of the blue box's height.
The blue box has style flex-grow: 1
so that it occupies all remaining space inside the red box.
Is it even possible to do this with the flex-box layout?
If not, is there any other way with pure CSS and no table layouts?
* {box-sizing: border-box}
div {padding: 5px; border: 1px solid red ; display: flex }
col1 {border: 1px solid green}
col2 {flex-grow: 1; border: 1px solid blue; padding: 10px; margin-left: 5px}
item {display: inline-block; border: 1px solid black; width: 30% ; height: 50%}
<div>
<col1>
Content
<br><br><br><br><br>
of
<br><br><br><br><br>
this
<br><br><br><br><br>
column
</col1>
<col2>
<item>
Height must be 50% of parent's
</item>
<item>
Height must be 50% of parent's
</item>
<item>
Height must be 50% of parent's
</item>
</col2>
</div>