I'm trying to make item1 occupy 50% of the height of the red container, and that item 2 occupy the other 50% of the remaining height of the red container, if this works, all the red background will be hidden, but it is not.
<div style="height: 300px; background-color: red">
<div fxLayout="column" >
<div fxFlex="50" style="background-color: blue">Item 1</div>
<div fxFlex="50" style="background-color: yellow">Item 2</div>
</div>
</div>
This is what I want:
And this is what I get:
Can someone correct my code?
Thank you very much.