Bootstrap Tutorial - Create Lists Nav








The following code shows how to create Lists Nav.

Example

<!DOCTYPE html>
<html lang="en">
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.8.3.js'></script>
<script type='text/javascript'
  src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css"
  href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.0/css/bootstrap.min.css">
<style type="text/css">
.well {<!--  w  w  w. j  a v  a2s.  c o  m-->
  width: 250px;
  padding: 10px 0;
}
.bs-example {
  margin: 20px;
}
</style>
</head>
<body>
  <div class="bs-example">
    <div class="well">
      <ul class="nav nav-list">
        <li class="nav-header">LIBRARY</li>
        <li><a href="#">Pictures</a></li>
        <li><a href="#">Videos</a></li>
        <li><a href="#">Documents</a></li>
        <li class="nav-header">FAVORITES</li>
        <li><a href="#">Music</a></li>
        <li><a href="#">Applications</a></li>
        <li class="divider"></li>
        <li><a href="#">Help</a></li>
      </ul>
    </div>
  </div>
</body>
</html>

Click to view the demo