"Compact login form BS 3"
Bootstrap 3.0.0 Snippet by msurguy

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.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-4 col-md-offset-4"> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Please sign in</h3> </div> <div class="panel-body"> <form accept-charset="UTF-8" role="form"> <fieldset> <div class="form-group"> <input class="form-control" placeholder="E-mail" name="email" type="text"> </div> <div class="form-group"> <input class="form-control" placeholder="Password" name="password" type="password" value=""> </div> <div class="checkbox"> <label> <input name="remember" type="checkbox" value="Remember Me"> Remember Me </label> </div> <input class="btn btn-lg btn-success btn-block" type="submit" value="Login"> </fieldset> </form> </div> </div> </div> </div> </div>
body{padding-top:20px;}

Related: See More


Questions / Comments:

If you make this panel longer the page will not scroll so you can see the bottom of the panel.

Dan T (0) - 3 years ago - Reply 0


quick question: why is there a value attribute in the <input> for password?

George (0) - 3 years ago - Reply 0


It is optional in this case, you can remove it if you want.
A better way would be to validate against the HTML standards though.

maxsurguy (0) - 3 years ago - Reply 0


Это очень круто! Спасибо =D

Алексей Данчин (0) - 4 years ago - Reply 0


На здоровье!

maxsurguy (0) - 4 years ago - Reply 0


Very nice. Thank you.

Volker Aufschild (0) - 4 years ago - Reply 0


Excelente Gracias!!

Obed (0) - 4 years ago - Reply 0


This is great, thank you.

JGallardo (0) - 4 years ago - Reply 0