"Fancy navbar login / sign in form"
Bootstrap 3.2.0 Snippet by abudayah

<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.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 ----------> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <body> <nav class="navbar navbar-default navbar-inverse" role="navigation"> <div class="container-fluid"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-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="#">Login dropdown</a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav"> <li class="active"><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <span class="caret"></span></a> <ul class="dropdown-menu" role="menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> <li class="divider"></li> <li><a href="#">One more separated link</a></li> </ul> </li> </ul> <form class="navbar-form navbar-left" role="search"> <div class="form-group"> <input type="text" class="form-control" placeholder="Search"> </div> <button type="submit" class="btn btn-default">Submit</button> </form> <ul class="nav navbar-nav navbar-right"> <li><p class="navbar-text">Already have an account?</p></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><b>Login</b> <span class="caret"></span></a> <ul id="login-dp" class="dropdown-menu"> <li> <div class="row"> <div class="col-md-12"> Login via <div class="social-buttons"> <a href="#" class="btn btn-fb"><i class="fa fa-facebook"></i> Facebook</a> <a href="#" class="btn btn-tw"><i class="fa fa-twitter"></i> Twitter</a> </div> or <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="exampleInputEmail2">Email address</label> <input type="email" class="form-control" id="exampleInputEmail2" placeholder="Email address" required> </div> <div class="form-group"> <label class="sr-only" for="exampleInputPassword2">Password</label> <input type="password" class="form-control" id="exampleInputPassword2" placeholder="Password" required> <div class="help-block text-right"><a href="">Forget the password ?</a></div> </div> <div class="form-group"> <button type="submit" class="btn btn-primary btn-block">Sign in</button> </div> <div class="checkbox"> <label> <input type="checkbox"> keep me logged-in </label> </div> </form> </div> <div class="bottom text-center"> New here ? <a href="#"><b>Join Us</b></a> </div> </div> </li> </ul> </li> </ul> </div><!-- /.navbar-collapse --> </div><!-- /.container-fluid --> </nav> </body>
body{ background:url('http://www.wallpaperup.com/uploads/wallpapers/2012/10/21/20181/cad2441dd3252cf53f12154412286ba0.jpg'); padding:50px; } #login-dp{ min-width: 250px; padding: 14px 14px 0; overflow:hidden; background-color:rgba(255,255,255,.8); } #login-dp .help-block{ font-size:12px } #login-dp .bottom{ background-color:rgba(255,255,255,.8); border-top:1px solid #ddd; clear:both; padding:14px; } #login-dp .social-buttons{ margin:12px 0 } #login-dp .social-buttons a{ width: 49%; } #login-dp .form-group { margin-bottom: 10px; } .btn-fb{ color: #fff; background-color:#3b5998; } .btn-fb:hover{ color: #fff; background-color:#496ebc } .btn-tw{ color: #fff; background-color:#55acee; } .btn-tw:hover{ color: #fff; background-color:#59b5fa; } @media(max-width:768px){ #login-dp{ background-color: inherit; color: #fff; } #login-dp .bottom{ background-color: inherit; border-top:0 none; } }

Related: See More


Questions / Comments:

Awesome menu!

Any idea how I could add sub dropdowns?

Thank you

frankie71 (1) - 3 years ago - Reply 1


Awesome menu!

Any idea how to add sub dropdowns?

frankie71 (1) - 3 years ago - Reply 0


Awesome menu!

Any idea how I could add sub dropdowns?

Thank you

frankie71 (1) - 3 years ago - Reply 0


Awesome menu!

Any idea how I could add sub dropdowns?

Thank you

frankie71 (1) - 3 years ago - Reply 0


Awesome menu!

Any idea how I could add sub dropdowns?

Thank you

frankie71 (1) - 3 years ago - Reply 0


Awesome menu!

Any idea how to add sub dropdowns?

frankie71 (1) - 3 years ago - Reply 0


This looks very nice and helpful, i am using this on my website www.klfreelancedesigner.com you can add some icons to make it more bueatiful :)

Soul () - 6 years ago - Reply 0


donde bajo esa joda

haquemate81 () - 6 years ago - Reply 0


Los botones no me funcionan y no despliega el menu. Help me!

Elvin Hernandez () - 6 years ago - Reply 0


Nice... And Thanks

Anwar Jahid () - 6 years ago - Reply 0


why after i pressed sign in there is 404 error ??? D:

karinyan () - 7 years ago - Reply 0


look your form route and redirect routes

Juan Rincón () - 6 years ago - Reply 0


Cool, Thank you! :D

Tekk () - 7 years ago - Reply 0


i need a login page but my application is single page application and have single master page so i give background for the login page but it affect the all page because its single page application and anyone know how it solved

vipin () - 7 years ago - Reply 0


When I minimize the browser the search bar will going down of the brand name, how can I fixed it? How will it still look good even in small devices? Thanks :)

Chrisell Bencalo () - 7 years ago - Reply 0


what a btn google plus? to this' not work

Reyy a-young () - 7 years ago - Reply 0


Can't make it work on 3.3.0 :(
The login-dp window doesn't appear, any idea?
I wonder if it's not an issue with jquery? any ideas about which version to use?

freedze () - 7 years ago - Reply 0


With Boostrap 4.0.0alpha3 you need to change:

<ul id="login-dp" class="dropdown-menu dropdown-menu-right">

Michele () - 7 years ago - Reply 0


Seems working also with Boostrap 4.0 but dropdown went out of the page on the right. Try fixing...

Michele () - 7 years ago - Reply 0


the drop down is not working pls help

rehman butt () - 7 years ago - Reply 0


great. I converted this to Jade and it works perfectly fine

ADONGO JUSTICE () - 7 years ago - Reply 0


شكراً لك : )

عبدالله () - 8 years ago - Reply 0


my searchbar is stretched over the whole page on a second row and i can't get it up in the first row.. any ideas what's wrong here? thanks

RailgunPaul () - 8 years ago - Reply 0


Check the widths of the elements within the row. I am expecting they are more than 100% which is causing the overflow. I would suggest adding the following to your CSS as well (at the top of the file):

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

Padraig MacUidhir () - 7 years ago - Reply 0


Thanks!

trungdq_58 () - 8 years ago - Reply 0


Looks great except certain CSS pieces appear to be missing and I cannot override them with a local CSS file/command.

XaosQueen () - 8 years ago - Reply 0


Biju UI Developer: www.bijudes () - 8 years ago - Reply 0


Nice!

[CorVayne] #TeamExitoso () - 8 years ago - Reply 0


For some reason the dropdown isn't working. Any thoughts as to why the navbar is up but the buttons don't do what you're showing in the preview?

Zack () - 8 years ago - Reply 0


did you fixed if already ?

rehman butt () - 7 years ago - Reply 0


must have loaded an old bootstrap.js, get the latest and place it well.

TAHIR kamal () - 8 years ago - Reply 0


sure u added botstrap.js too?

cgwic () - 8 years ago - Reply 0