"Login form in modal"
Bootstrap 3.2.0 Snippet by Thingmand

<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet"> <div id="login-overlay" class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> <h4 class="modal-title" id="myModalLabel">Login to site.com</h4> </div> <div class="modal-body"> <div class="row"> <div class="col-xs-6"> <div class="well"> <form id="loginForm" method="POST" action="/login/" novalidate="novalidate"> <div class="form-group"> <label for="username" class="control-label">Username</label> <input type="text" class="form-control" id="username" name="username" value="" required="" title="Please enter you username" placeholder="example@gmail.com"> <span class="help-block"></span> </div> <div class="form-group"> <label for="password" class="control-label">Password</label> <input type="password" class="form-control" id="password" name="password" value="" required="" title="Please enter your password"> <span class="help-block"></span> </div> <div id="loginErrorMsg" class="alert alert-error hide">Wrong username og password</div> <div class="checkbox"> <label> <input type="checkbox" name="remember" id="remember"> Remember login </label> <p class="help-block">(if this is a private computer)</p> </div> <button type="submit" class="btn btn-success btn-block">Login</button> <a href="/forgot/" class="btn btn-default btn-block">Help to login</a> </form> </div> </div> <div class="col-xs-6"> <p class="lead">Register now for <span class="text-success">FREE</span></p> <ul class="list-unstyled" style="line-height: 2"> <li><span class="fa fa-check text-success"></span> See all your orders</li> <li><span class="fa fa-check text-success"></span> Fast re-order</li> <li><span class="fa fa-check text-success"></span> Save your favorites</li> <li><span class="fa fa-check text-success"></span> Fast checkout</li> <li><span class="fa fa-check text-success"></span> Get a gift <small>(only new customers)</small></li> <li><a href="/read-more/"><u>Read more</u></a></li> </ul> <p><a href="/new-customer/" class="btn btn-info btn-block">Yes please, register now!</a></p> </div> </div> </div> </div> </div>

Similar snippets: See More


ALFREDO 2014-12-19 01:50:01
Angelo V. Merlo 2014-12-22 14:44:48
    Because the only thing you need is included bootstrap in the HTML code and this source within the body tag!
Armando 2015-01-14 12:48:06
    I think it should have "col-xs-12 col-md-6" instead "col-xs-6 "
artur99 2015-02-11 11:34:39
    Thanks, by the way, line 24: "Wrong username og password"
Lyna Amc 2015-03-30 03:59:30
    thanks so much! this code works for me!
Kiwi109 2015-04-06 17:12:49
    Cannot get the modal to work, any advice?
Miguel Machado 2015-04-30 01:21:28
    Thanks, I'm using it in my e-commerce project
Ringo Simpkins 2015-06-21 22:54:41
    If you have it so it separates the "modal" and "modal-dialog" classes in to separate divs and give it the role="dialog" like this:
pozywizard 2015-06-22 15:06:45
    great snippet
Samuel Ladapo 2015-06-24 09:27:40
    All thanks to you! :)
Chaz Cash 2015-09-22 20:08:05
    How do i send the form data to a php file? help me please thank you
mehrumj 2015-12-24 16:27:36
    I'm using this form here: https://bedroomsandmore.com...

Commenting will be back soon.