I'm seeking a solution that will achieve the desired outcome without using position: fixed
on the navbar, as shown in the following image (I want it to disappear when scrolling down):
https://i.sstatic.net/lFW0w.png
The image serves as the background for the div below. Removing position: fixed
causes the navbar to overlap the image. Is there a CSS approach that can handle this properly?
I am utilizing Bootstrap, unsure if that information might streamline the process.