Trying to achieve a full-screen layout that occupies 100% of the viewport with a sticky header and footer, along with columns in the main content area that can be individually scrolled.
I've been experimenting with using classes like .h-100 and .flex-grow-1 on different rows and columns but haven't been successful. The closest I got was by adding h-100 to the container and middle row, but this caused the footer to be pushed off the bottom of the screen.
<body>
<div class="container-fluid h-100">
<div class="row">
<div class="col-12 border">Navbar </div>
</div>
<div class="row">
<div class="col-2 border" style="overflow-y: scroll;">Sidebar </div>
<div class="col-4 border" style="overflow-y: scroll;">Article list </div>
<div class="col-6 border" style="overflow-y: scroll;">Article content </div>
</div>
<div class="row">
<div class="col-12 border">Footer </div>
</div>
</div>
</body>
I managed to make it work with a single column, but when trying to add more than one column, the layout broke in a way that I cannot figure out.