I am trying to use flexbox to have fixed height container ( two
) to be stuck to the bottom of the page and then have the other container take up the available space (flex-grow) . This is not giving me the desired effect so I'm not sure what I'm missing
<div class="container">
<div class="one">One</div>
<div class="two">Two</div>
</div>
.container {
height: 100%;
display: flex;
flex-direction: column;
background: black;
}
.one {
flex-grow: 1;
background: green
}
.two {
height: 90px;
background:pink;
}