My website features a transparent bootstrap navbar, with the hero header as the second element on the page set at a -50 margin to place it behind the menu, creating the desired effect.
However, I have encountered an issue on certain pages where there is no header image present, leaving me with a transparent navbar that blends into the default white background.
I am seeking advice on how to implement a fallback option for the navbar to have some background if there is no hero image on the page. Ideally, I would like to achieve this using pure CSS and perhaps through clever layering techniques. Any suggestions would be greatly appreciated as I am struggling to find a solution.