Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Is it Possible to make a Sticky Navbar? #36

Open
whitef0x0 opened this issue Jan 5, 2017 · 2 comments
Open

[Question] Is it Possible to make a Sticky Navbar? #36

whitef0x0 opened this issue Jan 5, 2017 · 2 comments
Assignees

Comments

@whitef0x0
Copy link

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.

@whitef0x0 whitef0x0 changed the title How to Create Sticky Navbar [Question] Is it Possible to make a Sticky Navbar? Jan 5, 2017
@bodytaing
Copy link
Contributor

bodytaing commented Feb 6, 2017

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.

@bodytaing
Copy link
Contributor

I am considering adding a sticky nav class in Vital.

@bodytaing bodytaing self-assigned this Feb 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants