I am facing a challenge with a container div which has child elements.
<div class='wrapper'>
<div class='content'></div>
<div class='footer'></div>
</div>
The height of the content div may vary, but I want the footer div to always remain at the bottom of the wrapper.
When I attempt to set the wrapper to have:
position: relative
and set the footer child to:
display: absolute;
bottom: 0;
This only works if I specify a specific height for the wrapper. Furthermore, when resizing the window, the footer disappears.
Is there a way to achieve this layout using flexbox without relying on positioning? In other words, is it possible to have a fixed footer and dynamic content without using position properties?