Bootstrap Tutorial - Pull right on nav








The following code shows how to pull right on nav.

Example

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.9.1.js'></script>
<script type='text/javascript'
  src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css"
  href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css">
</head><!--from   w  w  w.  jav  a  2s  .  co  m-->
<body>
  <div class="navbar navbar-inverse navbar-fixed-top">
    <div class="navbar-inner">
      <div class="container">
         <a href="#" class="brand">BRAND</a>
        <ul class="nav pull-right">
          <li><a href="#">Fixed Link</a></li>
        </ul>
        <div class="nav-collapse">
          <ul class="nav">
            <li><a href="#">L1</a></li>
            <li><a href=#">L2</a></li>
          </ul>
        </div>
      </div>
    </div>
  </div>
</body>
</html>

Click to view the demo