I am faced with the challenge of designing a layout where a content grid occupies the entire remaining page, while also incorporating a navigation bar.
To achieve this, my approach involves placing the navigation bar within a flex container and the content in a row with 100% height. The ultimate goal is to have the content fill up the remaining space on the page, regardless of the dynamic height of the navigation bar.
However, I have encountered an issue with the navigation bar not resizing correctly on smaller screens. When the menu is expanded, it ends up overlapping with the content.
<div class="container-fluid h-100 d-flex flex-column">
<nav class="navbar navbar-expand-sm s-navbar">
...
</nav>
<div class="row h-100">
...// content presented here
</div>
</div>
You can view the issue here https://jsfiddle.net/ej9fd368/8/, where the last menu item is cut off due to the yellow content.
The key requirement is for the content to seamlessly fill up the remainder of the page.