I have a container div that contains children.
<div class='wrapper'>
<div class='content'></div>
<div class='footer'></div>
</div>
The content div can have a dynamic height but the footer div needs to always stick to the bottom.
When I try to set wrapper with
position: relative
and the footer child with:
display: absolute;
bottom: 0;
It only works if I set the height of the wrapper. Also, when resizing the window, the footer disappears.
Is there a way to achieve this behavior with flexbox without using position? i.e. fixed footer and dynamic content?