I am facing an issue where the content on my page is being pushed down by the navbar, resulting in a small scroll gap at the bottom of the page.
https://i.sstatic.net/6oLTY.jpg
I want all the content to fill the page without having an unnecessary scrollbar like in the image above. The navbar at the top of the page is a basic Bootstrap navbar with the body utilizing code from Bootsnipp. It consists of a side navigation and content area that I have customized and added a responsive toggle button to.
The problem arises from applying position: absolute
to #sidebar-wrapper
, which fixes the side nav to the top of the page. I have experimented with changing the layout order and positioning, as well as enclosing the header-navbar and content inside a wrapper, but with limited success.
https://i.sstatic.net/lTFM0.gif
The gif above depicts the issue I faced before using position: absolute
. However, this is only a temporary solution because when the window is resized vertically, the side-nav does not remain fixed to the bottom of the page.
Below is a snippet of the view causing the problem.
Thank you for your time, and I am willing to provide more information if needed.
// JavaScript code snippet here
// CSS code snippet here