Bootstrap Tutorial - Float right nav








The following code shows how to float right nav.

Example

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<script type="text/javascript"
  src="http://code.jquery.com/ui/1.8.18/jquery-ui.min.js"></script>
<script type="text/javascript" src="/js/lib/bootstrap-2.0.2.js"></script>
<script type='text/javascript'
  src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css"
  href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/css/bootstrap-combined.min.css">
<style type='text/css'>
.navbar .brand {<!-- w  w w  . j a  v  a  2  s .  com-->
  padding: 10px 20% 10px;
}
.mvr {
  float: right;
}
</style>
</head>
<body style='margin:30px'>
  <div class="navbar">
    <div class="navbar-inner">
      <a class="brand" href="#">Title</a>
      <div class="mvr">
        <ul class="nav">
          <li class="active"><a href="#">Home</a></li>
          <li><a href="#">Link</a></li>
          <li><a href="#">Link</a></li>
        </ul>
      </div>
    </div>
    <br />
  </div>
</body>
</html>

Click to view the demo