4 Answers
New Answeryou can try follow this example for a sticky navbar (tho i wouldn't recommend using it for anything serious) https://code.sololearn.com/W7q5hsYxi3NN/?ref=app and the github page https://github.com/wilddeer/stickyfill edit: there's also stickyBits https://github.com/dollarshaveclub/stickybits https://css-tricks.com/stickybits-alternative-position-sticky-polyfills/
W3schools has an example of that, although I'm not sure this is what you mean: https://www.w3schools.com/howto/howto_js_navbar_sticky.asp https://www.w3schools.com/howto/howto_css_fixed_menu.asp
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message