Fixed Navigation Bar With Twitter Bootstrap18 Apr 2012
Twitter Bootstrap has many very interesting features available. I really liked their fixed sub navigation menus for the feature pages. As you scroll past the subnavigation, it docs with the top of the scroll window and stays there. It also enables click navigation to other feature sections.
This wires the processScroll() function to the window scroll event and toggles the navigation element based on where it rests relative to the viewport. The idea being to add the ‘subnav-fixed’ CSS class to keep the element within the viewport.
Attached to the body tag was the first bit of markup that I needed to see: ``` html Page Markup``` The navigation div tags contained the rest of the information: ``` html Navigation markup