"Modal login"
Bootstrap 3.3.0 Snippet by naomiouled

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.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="open_modal" data-toggle="modal" data-target="#login-modal">Inloggen</div> <div class="open_modal" data-toggle="modal" data-target="#register-modal">Registreren</div> <!-- Login modal --> <div class="modal fade" id="login-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;"> <div class="modal-dialog"> <div class="loginmodal-container"> <div class="close_modal" data-dismiss="modal" aria-label="Close">x</div> <h1>Inloggen</h1><br> <form> <input type="text" name="email" placeholder="Email"> <input type="password" name="pass" placeholder="Wachtwoord"> <input type="submit" name="login" class="login loginmodal-submit" value="Inloggen"> </form> <div class="modal-help"> <div class="button_help">Nog geen account? Hier aanmelden.</div> </div> </div> </div> </div> <!-- Register modal --> <div class="modal fade" id="register-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;"> <div class="modal-dialog"> <div class="registermodal-container"> <div class="close_modal" data-dismiss="modal" aria-label="Close">x</div> <h1>Registreren</h1><br> <form> <input type="text" name="voornaam" placeholder="Voornaam"> <input type="text" name="tvg" placeholder="Tussenvoegsel"> <input type="text" name="achternaam" placeholder="Achternaam"> <input type="text" name="email" placeholder="Email"> <input type="password" name="pass" placeholder="Wachtwoord"> <input type="password" name="pass" placeholder="Herhaal wachtwoord"> <div class="profile"> <h3>Profiel</h3> <hr> <p>Vul uw profielgegevens in om te kunnen reageren op een woning.</p> <form> Geslacht<br> <input type="radio" name="geslacht" value="man">Man <input type="radio" name="geslacht" value="vrouw">Vrouw </form> </div> <br> <input type="submit" name="register" class="register registermodal-submit" value="Registreren"> </form> <div class="modal-help"> <div class="button_help prf">Profielgegevens</div> <div class="button_help lgn" >Heeft u al een account? Log dan hier in.</div> </div> </div> </div> </div>
@import url(https://fonts.googleapis.com/css?family=Raleway); body{ font-family:Raleway; cursor: default; } .open_modal{ font-size:22px; color: black; padding: 15px; cursor: pointer; display: inline-block; } .open_modal:active { transform: translate(0px,5px); -webkit-transform: translate(0px,5px); } .close_modal{ -webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; float:right; color: black; cursor: pointer; font-size: 30px; } .close_modal:hover{ -webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; color: #525252; } /*.modal_logo {*/ /* margin: auto;*/ /* width: 75px;*/ /* height: 75px;*/ /* border-radius:50%;*/ /* margin-left:auto;*/ /* margin-right:auto;*/ /* -webkit-box-shadow: 0px 1px 11px 0px rgba(50, 50, 50, 0.67);*/ /* -moz-box-shadow: 0px 1px 11px 0px rgba(50, 50, 50, 0.67);*/ /* box-shadow: 0px 1px 11px 0px rgba(50, 50, 50, 0.67);*/ /*}*/ .modal-help{ font-size: 12px; } .button_help{ -webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; float: left; color: black; cursor: pointer; padding: 5px; } .button_help:hover{ -webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; color: #525252; } hr{ width: 100%; height: 1px; background-color: #5c5c5c; } p{ font-size:12px; } /* Login modal */ .loginmodal-container { padding: 30px; max-width: 350px; width: 100% !important; background-color: #F7F7F7; margin: 0 auto; border-radius: 2px; box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3); overflow: hidden; font-family: Raleway; } .loginmodal-container h1 { text-align: center; font-size: 1.8em; } .loginmodal-container input[type=submit] { width: 100%; display: block; margin-bottom: 10px; position: relative; } .loginmodal-container input[type=text], input[type=password] { height: 44px; font-size: 16px; width: 100%; margin-bottom: 10px; -webkit-appearance: none; background: #fff; border: 1px solid #d9d9d9; border-top: 1px solid #c0c0c0; /* border-radius: 2px; */ padding: 0 8px; box-sizing: border-box; -moz-box-sizing: border-box; } .loginmodal-container input[type=text]:hover, input[type=password]:hover { border: 1px solid #b9b9b9; border-top: 1px solid #a0a0a0; -moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); } .loginmodal { text-align: center; font-size: 14px; font-family: 'Arial', sans-serif; font-weight: 700; height: 36px; padding: 0 8px; /* border-radius: 3px; */ /* -webkit-user-select: none; user-select: none; */ } .loginmodal-submit { /* border: 1px solid #3079ed; */ border: 0px; color: #fff; text-shadow: 0 1px rgba(0,0,0,0.1); background-color: #4d90fe; padding: 17px 0px; font-size: 14px; /* background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#4d90fe), to(#4787ed)); */ } .loginmodal-submit:hover { /* border: 1px solid #2f5bb7; */ border: 0px; text-shadow: 0 1px rgba(0,0,0,0.3); background-color: #357ae8; /* background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#4d90fe), to(#357ae8)); */ } .loginmodal-container a { text-decoration: none; color: #666; font-weight: 400; text-align: center; display: inline-block; opacity: 0.6; transition: opacity ease 0.5s; } /* Register modal */ .registermodal-container { padding: 30px; max-width: 350px; width: 100% !important; background-color: #F7F7F7; margin: 0 auto; border-radius: 2px; box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3); overflow: hidden; font-family: Raleway; } .registermodal-container h1 { text-align: center; font-size: 1.8em; } .registermodal-container input[type=submit] { width: 100%; display: block; margin-bottom: 10px; position: relative; } .registermodal-container input[type=text], input[type=password] { height: 44px; font-size: 16px; width: 100%; margin-bottom: 10px; -webkit-appearance: none; background: #fff; border: 1px solid #d9d9d9; border-top: 1px solid #c0c0c0; /* border-radius: 2px; */ padding: 0 8px; box-sizing: border-box; -moz-box-sizing: border-box; } .registermodal-container input[type=text]:hover, input[type=password]:hover { border: 1px solid #b9b9b9; border-top: 1px solid #a0a0a0; -moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); } .registermodal { text-align: center; font-size: 14px; font-family: 'Arial', sans-serif; font-weight: 700; height: 36px; padding: 0 8px; /* border-radius: 3px; */ /* -webkit-user-select: none; user-select: none; */ } .registermodal-submit { /* border: 1px solid #3079ed; */ border: 0px; color: #fff; text-shadow: 0 1px rgba(0,0,0,0.1); background-color: #4d90fe; padding: 17px 0px; font-size: 14px; /* background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#4d90fe), to(#4787ed)); */ } .registermodal-submit:hover { /* border: 1px solid #2f5bb7; */ border: 0px; text-shadow: 0 1px rgba(0,0,0,0.3); background-color: #357ae8; /* background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#4d90fe), to(#357ae8)); */ } .registermodal-container a { text-decoration: none; color: #666; font-weight: 400; text-align: center; display: inline-block; opacity: 0.6; transition: opacity ease 0.5s; } .profile{ display: none; }
$(document).ready(function(){ $(".prf").click(function(){ $(".profile").fadeToggle(); }); });

Questions / Comments:

Related: See More