Bootstrap Tutorial - Create justified nav








The following code shows how to create justified nav.

Example

<!--   w  ww.ja  v  a 2  s. c  o  m-->
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css"
  href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/css/bootstrap.min.css">
</head>
<body>
<body>
  <div class="container">
    <div class="navbar">
      <a class="navbar-brand" href="#"><code>Navbar 2</code></a>
      <ul class="nav nav-justified">
        <li class="active"><a href="">Home</a></li>
        <li><a href="">Home</a></li>
        <li><a href="">Products</a></li>
        <li><a href="">Technology</a></li>
        <li><a href="">About Us</a></li>
        <li><a href="">News</a></li>
        <li><a href="">Contact</a></li>
      </ul>
    </div>
  </div>

</body>
</html>

Click to view the demo