Skip to content

Instantly share code, notes, and snippets.

@jayseventwo
Created June 17, 2013 05:46
Show Gist options
  • Save jayseventwo/5794845 to your computer and use it in GitHub Desktop.
Save jayseventwo/5794845 to your computer and use it in GitHub Desktop.
Create a sticky top nav menu using Twitter bootstrap - also works in WordPress themes based on Twitter Bootstrap
<!-- for fixed menu - surround nav menu -->
<div data-spy="affix" data-offset-top="200">
... header and nav menu ...
</div>
<!-- add to css -->
.affix {
top: 20px !important;
z-index: 100;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment