O'Reilly logo

Bootstrap Essentials by Snig Bhaumik

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Tabs

Tabs are another popular and pretty standard way of navigation in today's websites. In Bootstrap, it is very easy to design a tab-based navigation model; all you have to do is to create a UL element with .nav-tabs CSS class. Here is a sample code:

<div> <ul class="nav nav-tabs"> <li class="active"><a href="#tab1" data-toggle="tab">Tab 1</a></li> <li ><a href="#tab2" data-toggle="tab">Tab 2</a></li> <li ><a href="#tab3" data-toggle="tab">Tab 3</a></li> <li ><a href="#tab4" data-toggle="tab">Tab 4</a></li> </ul> <div class="tab-content"> <div class="tab-pane active" id="tab1"><br/>This is Tab 1</div> <div class="tab-pane" id="tab2"><br/>This is Tab 2</div> <div class="tab-pane" id="tab3"><br/>This is Tab 3</div> <div class="tab-pane" id="tab4"><br/>This ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required