Bootstrap Login Form in modal

This bootstrap snippet called "Bootstrap Login Form in modal" was created to help web designers,
front-end developers and back-end developer save time. Use it in your project and build your app faster,
You can also download the HTML, CSS, and JS code
tags: form,login,modal

HTML code

Copy, paste, change, customize and run the following HTML code to get a result like the one shown in the preview selection

<!--login modal-->
<div id="loginModal" class="modal show" tabindex="-1" role="dialog" aria-hidden="true">
  <div class="modal-dialog">
  <div class="modal-content">
      <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
          <h1 class="text-center">Login</h1>
      </div>
      <div class="modal-body">
          <form class="form col-md-12 center-block">
            <div class="form-group">
              <input type="text" class="form-control input-lg" placeholder="Email">
            </div>
            <div class="form-group">
              <input type="password" class="form-control input-lg" placeholder="Password">
            </div>
            <div class="form-group">
              <button class="btn btn-primary btn-lg btn-block">Sign In</button>
              <span class="pull-right"><a href="#">Register</a></span><span><a href="#">Need help?</a></span>
            </div>
          </form>
      </div>
      <div class="modal-footer">
          <div class="col-md-1accordion2">
          <button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
    	  </div>	
      </div>
  </div>
  </div>
</div>

CSS code

Copy, paste, change, customize and run the following CSS code to get a result Like the one shown in the preview selection


                
body{margin-top:20px;}              
.modal-footer {   border-top: 0px; }
                                    

Similar snippets

Bootstrap snippet Edit profile page

Edit profile page

View

Bootstrap snippet Blog Comments With Form

Blog Comments With Form

View

Bootstrap snippet bs4 beta login

bs4 beta login

View

About this snippet

Creator: Dey Dey

Bootstrap version: 3.0.3

Created: Apr 21st 2014, 12:26

Views: 9.1K

Rated 5/5 based on 4 reviews