Bootstrap Tutorial - Create fluid inner navbar








The following code shows how to create fluid inner navbar.

Example

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.8.3.js'></script>
<link rel="stylesheet" type="text/css"
  href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css">
<script type='text/javascript'
  src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/js/bootstrap.min.js"></script>
</head><!--   w w  w  .  j  a  va 2s.c o  m-->
<body>
  <div class="navbar">
    <div class="navbar-inner">
      <div class="container">
        <a class="btn btn-navbar" data-toggle="collapse"
          data-target=".IndustriesMenu" style="color: black;">view
          details </a>
        <div class="nav-collapse collapse IndustriesMenu">
          <ul class="nav">
            <li><a href="#">Button 1</a></li>
            <li><a href="#">Button 2</a></li>
            <li><a href="#">Button 3</a></li>
          </ul>
        </div>
      </div>
    </div>
  </div>
</body>
</html>

Click to view the demo