"Login From Navbar With Logo"
Bootstrap 2.3.2 Snippet by vic78

<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/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"> <div class="navbar-inner"> <a class="brand" href="#"> <!-- UNCOMMENT THE CSS VALUES TO TEST OTHER DIMENTIONS --> <img src="http://placehold.it/150x80&text=Logo" alt=""> </a> <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </a> <div class="nav-collapse collapse"> <ul class="nav"> <li><a href="#">link</a></li> <li><a href="#">link</a></li> <li><a href="#">link</a></li> <li class="dropdown"> <a class="dropdown-toggle" href="#" data-toggle="dropdown">Sign In <strong class="caret"></strong></a> <div class="dropdown-menu" style="padding: 15px; padding-bottom: 0px;"> <form method="post" action="" accept-charset="UTF-8"> <input style="margin-bottom: 15px;" type="text" required placeholder="Enter Username" id="username" name="username"> <input style="margin-bottom: 15px;" type="password" required placeholder="Enter Password" id="password" name="password"> <input style="float: left; margin-right: 10px;" type="checkbox" name="remember-me" id="remember-me" value="1"> <label class="string optional" for="user_remember_me"> Remember me</label> <input name="login" class="btn btn-primary btn-block" type="submit" id="sign-in" value="Sign In"> <label style="text-align:center;margin-top:5px">Welcome Back!</label> <a><label style="cursor: pointer;text-align:center;margin-top:5px" >Haven't Registered?</label></a> </form> </div> </li> <ul class="nav"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> About <b class="caret"></b> </a> <ul class="dropdown-menu"> <li><a href="#">link</a></li> <li><a href="#">link</a></li> <li><a href="#">link</a></li> <li><a href="#">link</a></li> </ul> </li> </ul> </ul> </div> </div> </div>
html { position: relative; min-height: 100%; } body { /* Margin bottom by footer height */ margin-bottom: 60px; } .navbar-inner{ /*height: 90px*/ min-height: 60px } .navbar .brand{ padding: 0 10px; } .navbar .nav > li > a { padding: 20px 15px; /*padding: 35px 15px;*/ } .navbar .btn-navbar { /*margin-right: 0px;*/ margin-top:15px; } .brand img{ margin-top: 5px } @media (max-width:768px) { .brand img{ margin-bottom: 5px } .navbar .btn-navbar{ /*margin-right: -15px;*/ } .navbar .nav > li > a { padding: 10px 15px; } } @media (max-width:768px) { .brand img{ margin-bottom: 5px } .navbar .btn-navbar{ /*margin-right: -15px;*/ } .navbar .nav > li > a { padding: 10px 15px; } }
$(document).ready(function(){ //Handles menu drop down $('.dropdown-menu').find('form').click(function (e) { e.stopPropagation(); }); });

Related: See More


Questions / Comments: