Bootstrap Tutorial - Create Navbar without collapse








The following code shows how to create Navbar without collapse.

Example

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-2.0.2.js'></script>
<link rel="stylesheet" type="text/css"
  href="http://getbootstrap.com/dist/css/bootstrap.css">
<script type='text/javascript'
  src="http://getbootstrap.com/dist/js/bootstrap.js"></script>
<link rel="stylesheet" type="text/css"
  href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css">
<style type='text/css'>
.navbar-nav {<!--from   w w  w  . j  a  va2 s  .  co  m-->
  margin: 0;
}
.navbar-nav>li {
  float: none;
  display: inline-block;
}
.navbar-nav>li>a {
  padding-top: 15px;
  padding-bottom: 15px;
}
.navbar-nav>li.open>ul.dropdown-menu {
  position: absolute;
  border: 1px;
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}
</style>
</head>
<body>
  <div class="navbar navbar-default nav-links navbar-fixed-top">
    <div class="container">
      <a class="mini-navbar navbar-brand" href="/"> <img
        src="http://placehold.it/30x30.png" width="25"
        class="img-rounded logo-nav mini-navbar" />
      </a>
      <ul class="nav navbar-nav">
        <li class="active"><a href="#">Used Cars</a></li>
        <li><a href="#">Get Finance</a></li>
        <li class="dropdown"><a href="#" class="dropdown-toggle"
          data-toggle="dropdown"> About Driven<strong class="caret"></strong>
        </a>
          <ul class="dropdown-menu">
            <li><a href="#">The Team</a></li>
            <li><a href="#">Our Partners</a></li>
          </ul></li>
      </ul>
    </div>
  </div>
  <!-- Post Info -->
  <div
    style='position: fixed; bottom: 0; left: 0; background: lightgray; width: 100%;'>
    About this SO Question: <a
      href='http://stackoverflow.com/q/24701713/1366033'>Creating a
      mobile nav that doesn't use collapse</a><br /> Fork This Skeleton Here: <a
      href='http://jsfiddle.net/KyleMit/kcpma/'>Bootstrap 3.0 Skeleton</a><br />
    <div>
</body>
</html>

Click to view the demo