Menu live example
<header class="fixed-top scroll-change"> <div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="navbar-main navbar-middle"> <div class="container"> <div class="scroll-hide"> <div class="container"> <a class="navbar-brand center" href="#"> <img src="../../../images/logo.png" alt="logo" /> </a> </div> </div> <div class="navbar-header"> <a class="navbar-brand" href="../../../index.html"><img src="../../../images/logo.png" alt="logo" /></a> <button type="button" class="navbar-toggle"> <i class="fa fa-bars"></i> </button> </div> <div class="collapse navbar-collapse"> <ul class="nav navbar-nav" style="margin-left:0px"> <li><a href="#">Home</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">Dropdown <i class="caret"></i></a> <ul class="dropdown-menu multi-level"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> </ul> </li> <li><a href="#">Team</a></li> <li class="scroll-show"><a href="#"><img src="../../../images/logo.png" alt="logo"></a></li> <li><a href="#">About me</a></li> <li><a href="#">Portfolio</a></li> <li><a href="#">Contacts</a></li> </ul> </div> </div> </div> </div> </header>
Name | Type | Description |
---|---|---|
Fixed menu | CSS class |
To set a menu to be always visible and fixed on top add class fixed-top to header object and class navbar-fixed-top to menu obejct.
Example: <header class="fixed-top"> <div class="navbar navbar-default navbar-fixed-top" role="navigation"> ... </div> </header> .
|
Hide on scroll | CSS class |
To hide a menu section on page scroll add class scroll-hide to object you want to hide.
Scroll hide is a feature of components - base.
Complete documentation here
|
Show on scroll | CSS class |
To show a menu section on page scroll add class scroll-show to object you want to hide.
Scroll show is a feature of components - base. Complete documentation here |
Logo centered | CSS style |
To center the middle menu logo add style margin-left:123px to ul nav object, replace 123 with correct margins.
|