Bootstrap Tutorial - Align navbar to fixed top








The following code shows how to align navbar to fixed top.

Example

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css"
  href="http://getbootstrap.com/dist/css/bootstrap.css">
<!--from   w w  w .  j  a  va  2 s.c  o m-->
</head>
<body>
  <div class="navbar navbar-inverse navbar-fixed-top"></div>

</body>
</html>

Click to view the demo