Is it possible to use flexbox to have a div that will fill the entire remaining area (using flex-grow: 1
) and have its' child div dimensions in percentages?
I tried:
<div style="height:700px; width 100%; display:flex; flex-direction: column; background-color:red;">
<div>Hello Plunker!</div>
<div style="background-color:green; flex-grow:1;">
<div style="background-color: blue; height:70%; width:70%;"></div>
</div>
</div>
Is flexbox the right way to achieve this?