02.06.2015 Views

Bootstrap Tutorial

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER<br />

18<br />

<strong>Bootstrap</strong> Navigation Elements<br />

In this chapter we will discuss about how <strong>Bootstrap</strong> provides a few different options for styling navigation<br />

elements. All of them share the same markup and base class, .nav. <strong>Bootstrap</strong> also provides a helper class, to<br />

share markup and states. Swap modifier classes to switch between each style.<br />

Tabular Navigation or Tabs<br />

To create a tabbed navigation menu:<br />

<br />

<br />

Start with a basic unordered list with the base class of .nav<br />

Add class .nav-tabs.<br />

Following example demonstrates this:<br />

Tabs Example<br />

<br />

Home<br />

SVN<br />

iOS<br />

VB.Net<br />

Java<br />

PHP<br />

<br />

Pills Navigation<br />

BASIC PILLS<br />

To turn the tabs into pills, follow the same steps as above, use the class .nav-pills instead of .nav-tabs.<br />

Following example demonstrates this:<br />

Pills Example<br />

TUTORIALS POINT<br />

Simply Easy Learning

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!