"Static Top Navbar"
Bootstrap 3.3.0 Snippet by MTaqi

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.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 ----------> <header class="navbar navbar-static-top top-bar" id="top" role="banner"> <div class="container"> <div class="navbar-header"> <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target="#bs-navbar" aria-controls="bs-navbar" aria-expanded="false"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand web-logo" href="http://meaww.com" style="padding: 10px">Google</a> </div> <nav id="bs-navbar" class="collapse navbar-collapse bs-navbar-collapse" role="navigation"> <ul class="nav navbar-nav"> <li> <a href="/" class="menu-item">Home</a> </li><li> <a href="/logout" class="menu-item">Logout</a> </li> </ul> </nav> </div> </header>
@import 'http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&subset=latin'; @import 'http://fonts.googleapis.com/css?family=Anton'; body { min-height: 500px; background-color: #f3f3f3; color: #333; font: 13px/18px 'Open Sans', arial, sans-serif; -webkit-font-smoothing: antialiased; } .navbar-nav>li>a { padding-top: 15px; padding-bottom: 15px; line-height: 20px; } .top-bar { background-color: #fff; margin-bottom: 0px; width: 100%; height: 50px; webkit-box-shadow: rgba(0, 0, 0, 0.14902) 0px 2px 4px 0px; -moz-box-shadow: rgba(0, 0, 0, 0.14902) 0px 2px 4px 0px; box-shadow: rgba(0, 0, 0, 0.14902) 0px 2px 4px 0px; } .menu-item { line-height: 20px; color: #3f729b; font-weight: bold; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; } .menu-item-flexible { max-width: 230px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } .web-logo { color: #3f729b; font-size: 18px; font-weight: 200; line-height: 1; padding-left: 0px; } @media (max-width: 768px) { .web-logo { padding-left: 15px; } } .header-profile { color: #3f729b; font-weight: bold; line-height: 1; max-width: 100px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; } .navbar-nav>li>a.header-profile { padding-top: 10px; padding-bottom: 10px; line-height: 30px; } .user-name-box { margin-left: 5px; display: none; } @media (min-width:768px) { .navbar-nav>li>a.header-profile { padding-right: 5px; } .web-logo { padding-left: 15px; } } #bs-navbar { background-color: #fff; } @media (max-width:767px) { .navbar-nav>li>a.header-profile { max-width: none; text-overflow: inherit; white-space: inherit; overflow: inherit; padding-top: 5px; padding-bottom: 5px; line-height: 25px; } .menu-item { font-size: 14px; } .menu-item-flexible { max-width: none; text-overflow: inherit; overflow: inherit; white-space: inherit; } .user-name-box { font-size: 14px; display: inline-block; } .navbar-nav>li { background-color: #eee; } #bs-navbar { background-color: #eee; font-size: 15px; webkit-box-shadow: rgba(0, 0, 0, 0.14902) 0px 2px 4px 0px; -moz-box-shadow: rgba(0, 0, 0, 0.14902) 0px 2px 4px 0px; box-shadow: rgba(0, 0, 0, 0.14902) 0px 2px 4px 0px; } } .navbar-toggle .icon-bar { background-color: #3f729b; } .navbar-toggle { padding-right: 0px; } @media (max-width: 768px) { .top-bar { padding-left: 0px; } .navbar-brand {} } .container>.navbar-header, .container-fluid>.navbar-header, .container>.navbar-collapse, .container-fluid>.navbar-collapse { margin-left: 0px; margin-right: 0px; }

Related: See More


Questions / Comments: