26.06.2017 Views

Bootstrap for ASP.NET MVC

Create successful ePaper yourself

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

Using <strong>Bootstrap</strong> JavaScript Plugins<br />

You can use a tab or pill navigation by setting the element's data-toggle<br />

attribute to either tab or pill and setting the element's class to nav-pills.<br />

The result will look like the following screenshot in your browser:<br />

To specify the content <strong>for</strong> the tabs, create a new element and set its class to<br />

tab-content. Create a element <strong>for</strong> each tab inside the parent element<br />

and set each tab's element's class to tab-pane as follows:<br />

<br />

<br />

Info Tab Content goes here<br />

<br />

<br />

Address Tab Content goes here<br />

<br />

<br />

In the preceding markup, we created two tabs and set the active tab to the info tab<br />

by setting its class to active.<br />

[ 84 ]

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

Saved successfully!

Ooh no, something went wrong!