I am in need of creating a layout with a header div at the top (that can be filled with content), a footer div at the bottom, and a middle div with an adaptable height to fill the entire screen.
Check out my code below:
<div class="container-fluid p-0" style="background-color:brown">
<div class="flex flex-column">
<div class="flex" style="background-color:aqua">Header</div>
<div class="flex flex-fill" style="background-color:yellow">This div should have variable height</div>
<div class="flex" style="background-color:aqua">Footer</div>
</div>
</div>
After running this code, you'll notice that the yellow div does not expand to fill the available space, maintaining the same height as the header and footer. The entire webpage will also have a brown background.
Any ideas on how to fix this issue?