"Fixed Top Navigation"
Bootstrap 3.2.0 Snippet by myun2

<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="navbar navbar-inverse navbar-fixed-top"> <a class="navbar-brand" href="#">Brand</a> <ul class="nav navbar-nav"> <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <span class="caret"></span></a> <ul class="dropdown-menu" role="menu"> <li><a href="#">Sub Menu1</a></li> <li><a href="#">Sub Menu2</a></li> <li><a href="#">Sub Menu3</a></li> <li class="divider"></li> <li><a href="#">Sub Menu4</a></li> <li><a href="#">Sub Menu5</a></li> </ul> </li> <li><a href="#">Link2</a></li> <li><a href="#">Link3</a></li> <li><a href="#">Link4</a></li> <li><a href="#">Link5</a></li> </ul> </div> <div class="container" style="padding-top: 60px"> <div class="row"> <h1>Twitter Bootstrap3 fixed top Navigation</h1> <h2>How to use Steps</h2> <ol> <li>Navbar need classes <code>navbar navbar-fixed-top</code></li> <li>And brand content need class <code>navbar-brand</code></li> <li>Navigation links parent element need <code>nav navbar-nav</code></li> <li>And <code>body</code> or main <code>.container</code> <strong>NEED PADDING TOP</strong> example for <xmp style="font-weight: normal;"><div class="container" style="padding-top: 50px"></xmp> </li> </ol> <h3 style="padding-top: 10px;">Summary Example code</h3> <p>example code for fixed top navigation-bar is,</p> <xmp style="padding-left: 15px; color: #333;"><div class="navbar navbar-inverse navbar-fixed-top"> <a class="navbar-brand" href="#">Brand</a> <ul class="nav navbar-nav"> <li><a href="#">Link1</a></li> <li><a href="#">Link2</a></li> : </ul> </div> <div class="container" style="padding-top: 60px"> : </div> </xmp> <p>;)</p> </div> </div>

Related: See More


Questions / Comments: