I want to have a header div on the top (which i can fill with other crap), and a footer div on the bottom. In the middle there should be a div with variable height to fill the whole screen.
Here is my code:
<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 should be variable in height</div>
<div class="flex" style="background-color:aqua">Footer</div>
</div>
</div>
If you execute this, you will see that the yellow line is never filled and it has the same height as both the header and the footer. You can also see that the whole website has a brown background.
Can you help me with that?