"Modal Form"
Bootstrap 3.0.0 Snippet by Prashant-Acharya

<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"> <h1> Modal Example <small>Login Form</small></h1> <div class="btn-group"> <button type="button" class = "btn btn-primary" data-toggle="modal" data-target="#myModal"> Login </button> <button type="button" class = "btn btn-primary" data-toggle="modal" data-target="#signUpModal"> Sign Up </button> </div> <div class="modal fade text-center" id="myModal" role="dialog"> <div class="modal-dialog modal-sm"> <div class="modal-content"> <div class="modal-header"> <button class="close" data-dismiss="modal">×</button> <h3>Login</h3> </div> <div class="modal-body"> <input type = "name" placeholder="Username"> <br><br> <input type = "password" placeholder="Password"> <br><br> <button class="btn btn-sm btn-primary">Login</button> <br><br> <small><a data-dismiss="modal" data-toggle="modal" data-target="#signUpModal">Sign Up</a></small> </div> </div> </div> </div> <div class="modal fade text-center" id="signUpModal" role="dialog"> <div class="modal-dialog modal-sm"> <div class="modal-content"> <div class="modal-header"> <button class="close" data-dismiss="modal">×</button> <h3>Create an account</h3> </div> <div class="modal-body"> <input type="name" placeholder="First Name"> <br><br> <input type="name" placeholder="Last Name"> <br><br> <input type="name" placeholder="Username"> <br><br> <input type="password" placeholder="Password"> <br><br> <input type="password" placeholder="Re-type Password"> <br><br> <button class="btn btn-primary btn-sm">Sign Up</button> <br><br> <a data-dismiss="modal" data-toggle="modal" data-target="#myModal">Already Have an account?</a> </div> </div> </div> </div> </div>
@import url('https://fonts.googleapis.com/css?family=Zilla+Slab'); input{ height: 30px; width: 90%; font-size: 16px; } body{ font-family: 'Zilla Slab', serif; font-size: 16px; }

Related: See More


Questions / Comments: