What is the best way to create a sticky top navigation bar?
Under a smaller navbar, I have a main navbar and I want the main navbar to be sticky when the page scrolls. I have tried (position: fixed), but when it scrolls, it leaves a space where the bar above it is.
Could you please suggest me the best way to do this?
Thanks