Create Nav pills with icons

Description

The following code shows how to create Nav pills with icons.

Example


<!--   w w w.ja v  a 2s .  c om-->
<!DOCTYPE html>
<html> 
<head>
<link rel="stylesheet" type="text/css"
  href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/css/bootstrap-combined.min.css">
<script type='text/javascript'
  src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css"
  href="http://netdna.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.css">
</head>
<body>
  <ul class="nav nav-pills">
    <li class="active"><a href="#"><i class="icon-file"></i> New
        File</a></li>
    <li><a href="#"><i class="icon-cut"></i> Cut</a></li>
    <li><a href="#"><i class="icon-edit"></i> Edit</a></li>
    <li><a href="#"><i class="icon-paste"></i> Settings</a></li>
  </ul>
</body>
</html>

Click to view the demo





















Home »
  Bootstrap »
    Example »




Accordion
Alert
Auto Complete
Badge
Breadcrum
Button
Carousel
Collapse
Dialog
Dropdown
Form
Icon
Jumbotron
Label
Layout
List
List Group
Media
Navigation Bar
Pager
Page Header
Panel
Paragraph
Pills
Popover
ProgressBar
ScrollSpy
Switch
Tab
Table
Thumnail
Tooltip
Tree
Well