"dropdown login form"
Bootstrap 3.3.0 Snippet by chephz

<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 ----------> <nav class="navbar navbar-default navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#"><img src="bs-logo.png"></a> </div> <div class="collapse navbar-collapse" id="myNavbar"> <ul class="nav navbar-nav"> <li ><a href="#">Home</a></li> <li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#">Profile<span class="caret"></span></a> <!-- <ul class="dropdown-menu"> <li><a href="#">Page 1-1</a></li> <li><a href="#">Page 1-2</a></li> <li><a href="#">Page 1-3</a></li> </ul> --> </li> <li><a href="#">Page 2</a></li> <li><a href="#">Page 3</a></li> </ul> <ul class="nav navbar-nav navbar-right"> <li><a href="#"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li> <li class="dropdown"><a class="dropdown-toggle" href="#" data-toggle="dropdown"><span class="glyphicon glyphicon-log-in"></span> Login</a> <div class="dropdown-menu" style="padding: 15px; padding-bottom: 10px;"> <form class="form-horizontal" method="post" accept-charset="UTF-8"> <input id="sp_uname" class="form-control login" type="text" name="sp_uname" placeholder="Username.." /> <input id="sp_pass" class="form-control login" type="password" name="sp_pass" placeholder="Password.."/> <input class="btn btn-primary" type="submit" name="submit" value="login" /> </form> </div> </li> </ul> </div> </div> </nav>
/* Sticky footer styles -------------------------------------------------- */ html, body { height: 100%; /* The html and body elements cannot have any padding or margin. */ padding-top: 70px; /* Required padding for .navbar-fixed-top. Change if height of navigation changes. */ } .navbar-fixed-top .nav { padding: 15px 0; } .navbar-fixed-top .navbar-brand { padding: 0 15px; } @media(min-width:768px) { body { padding-top: 100px; /* Required padding for .navbar-fixed-top. Change if height of navigation changes. */ } .navbar-fixed-top .navbar-brand { padding: 15px 0; } } .login { margin-bottom:5px; } .dropdown-menu { width: 300px !important; }

Related: See More


Questions / Comments: