Navs

Navigation available in Bootstrap share general markup and styles, from the base .nav class to the active and disabled states. Swap modifier classes to switch between each style.

Roll your own navigation style by extending the base .nav component. All Bootstrap's nav components are built on top of this. Includes styles for the disabled state, but not the active state.

{% example html %} {% endexample %}

Classes are used so your markup can be super flexible.

{% highlight html %} {% endhighlight %}

Takes the basic nav from above and adds the .nav-tabs class to generate a tabbed interface.

{% highlight html %} {% endhighlight %}

Requires JavaScript tabs plugin

For tabs with tabbable areas, you must use the tabs JavaScript plugin.

Take that same HTML, but use .nav-pills instead:

{% highlight html %} {% endhighlight %}

Just add .nav-stacked.

{% highlight html %} {% endhighlight %}

Add dropdown menus with a little extra HTML and the dropdowns JavaScript plugin.

Tabs with dropdowns

{% highlight html %} {% endhighlight %}

Pills with dropdowns

{% highlight html %} {% endhighlight %}