"Bootstrap Login Popup"
Bootstrap 3.3.0 Snippet by maramal

<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 ----------> <div class="container"> <div class="row"> <div class="col-md-12"> <nav class="navbar navbar-default" role="navigation"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-navbar-collapse-1"> <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" href="#">Your page</a> </div> <div class="collapse navbar-collapse" id="bs-navbar-collapse-1"> <ul class="nav navbar-nav navbar-right"> <li><a href="http://www.jquery2dotnet.com">Sign Up</a></li> <li class="dropdown"> <a href="http://www.jquery2dotnet.com" class="dropdown-toggle" data-toggle="dropdown">Sign in <b class="caret"></b></a> <ul class="dropdown-menu" style="padding: 15px;min-width: 250px;"> <li> <div class="row"> <div class="col-md-12"> <form class="form" role="form" method="post" action="login" accept-charset="UTF-8" id="login-nav"> <div class="form-group"> <label class="sr-only" for="emailInput">Email address</label> <input type="email" class="form-control" id="emailInput" placeholder="Email address" required> </div> <div class="form-group"> <label class="sr-only" for="passwordInput">Password</label> <input type="password" class="form-control" id="passwordInput" placeholder="Password" required> </div> <div class="checkbox"> <label> <input type="checkbox"> Remember me </label> </div> <div class="form-group"> <button type="submit" class="btn btn-success btn-block">Sign in</button> </div> </form> </div> </div> </li> <li class="divider"></li> <li> <input class="btn btn-primary btn-block" type="button" id="sign-in-google" value="Sign In with Google"> <input class="btn btn-primary btn-block" type="button" id="sign-in-twitter" value="Sign In with Twitter"> </li> </ul> </li> </ul> </div> </nav> </div> </div> </div>
body { margin-top:30px; } #login-nav input { margin-bottom: 15px; }
$(document).ready(function(){ //Handles menu drop down $('.dropdown-menu').find('form').click(function (e) { e.stopPropagation(); }); });

Related: See More


Questions / Comments: