Simply add an unordered list with the classes.nav,.navbar-nav to the navbar to add links.
This is demonstrated in the following example.−
To make the navbar more responsive, wrap the content that you want to collapse in a div with the classes.collapse and.navbar-collapse. The collapsing effect is triggered by a button with the class of.navbar-toggle and two data- elements. The first, data-toggle, instructs JavaScript on how to handle the button, while the second, data-target, specifies which element to toggle. Then, using the.icon-bar class, make what we like to call the hamburger button. This will turn on or off the elements in the.nav-collapse div>. The Bootstrap Collapse Plugin is required for this functionality to work.
This is demonstrated in the following example:
|