vital
vital copied to clipboard
[Question] Is it Possible to make a Sticky Navbar?
Is there anyway I can use Vital to create a sticky nav bar that has is position: fixed while the rest of the content scrolls below it?
I've tried getting this to work but not using a relative positive for nav seems to disrupt the relative order of the nav bar and the content below it.
It's possible but requires some custom code. Your fixed position should be applied to the .header class, not the nav element.
LMK if you are still encountering issues.
I am considering adding a sticky nav class in Vital.