Advertisement
Guest User

Sign In Button

a guest
May 1st, 2018
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.56 KB | None | 0 0
  1. HTML
  2.  <button class="signinbtn" onclick="document.getElementById('id01').style.display='block'; ">Sign In</button>    
  3.  
  4.  <div style="display: none ;" id="id01" class="login-form">
  5.              
  6.             <form Style="border: solid 2px #FFF; box-shadow: 300px;" class="loginform-content" action="/action_page.php">
  7.             <span onclick="document.getElementById('id01').style.display='none'" class="close" title="closeloginform" style="color: white; float: right; ">&times;
  8.             </span>
  9.             <div class="logincontainer">
  10.                 <hi style="font-size: 30px; color: white;">Sign In</hi>
  11.                 <p style="color: white;">Key in Username and Password..</p>
  12.                 <hr>
  13.                 <label style="color: white;" for="username"><b>Username:</b></label>
  14.                 <br>
  15.                 <input id="usernametxtbox" type="text" placeholder="Username or Email.." name="Username/Email" required>
  16.                 <br>
  17.                
  18.                 <label style="color: white;" for="password"><b>Password:</b></label>
  19.                 <br>
  20.                 <input id="passwordtxtbox" type="password" placeholder="Password.." name="password" required>
  21.                 <br>
  22.                 <input  type="checkbox" onclick="showpassword()" value="Show Password">Show password
  23.                 <br>
  24.                 <br>
  25.                 <input  type="submit" value="Log In">  
  26.                 <br>
  27.                 <br>
  28.                  <a href="Signup.html"><input type="button" value="Sign Up" > </a>
  29.                 </div>
  30.             </form>
  31.         </div>    
  32.  
  33. CSS
  34. <style>
  35. .login-form
  36. {
  37.     animation-name: LoginFadein;
  38.     animation-duration: 1s;
  39.  
  40. }
  41.  
  42. @keyframes LoginFadein
  43. {
  44.     From{opacity: 0}
  45.     to{opacity: 1}
  46. }
  47.  
  48.  #LoginNav
  49. {
  50.     margin: 0px;
  51. }
  52.  
  53. .signinbtn{
  54.     float:right;
  55.     background-color: #abaeb2 ;
  56.     color: white;
  57.     margin: 20px;
  58.     padding: 11px 35px 11px 35px;
  59.     margin: 0px 0px;
  60.     border: none;
  61.     border-radius: 5px;
  62.     cursor: pointer;
  63.     width: 100%;
  64.     opacity: 0.9;
  65.     border: solid 1px #FFF;
  66.    
  67.  
  68. }
  69.  
  70. .signinbtn:hover{
  71.    
  72.     border-color: black;
  73.     color: White;
  74. }
  75.  
  76. .loginform-content
  77. {
  78.     border-radius: 0px;
  79. }
  80.  
  81. .loginlabel p{
  82.     font-size: 50px;
  83.     font-weight: 800;
  84.    
  85. }
  86.  
  87. .lblbox{
  88.     font-size: 20;
  89.     opacity: 0.70;
  90. }
  91.  
  92.  #username, #Password{
  93.     border-radius: 5px;
  94.     background-color: #f2f2f2;
  95.     padding:20px;
  96.      padding-right: 70px;
  97. }
  98.  
  99. input[type=submit] ,input[type=button] {
  100.     width: 263;
  101.     background-color: #abaeb2;
  102.     color: #FFF;
  103.     padding:14px 10px ;
  104.     margin: 8px, 0px;
  105.     border: solid 1px #FFF;
  106.    
  107.     border-radius: 5px;
  108.     cursor:pointer;
  109. }
  110.  
  111.  
  112.  
  113. .logincontainer
  114. {
  115.     color: white;
  116. }
  117.  
  118. input[type=submit]:hover, input[type=button]:hover{
  119.    
  120.     background-color: none;
  121.     color: black;
  122.    border-color: black;
  123. }
  124.  
  125.  
  126.  
  127. .login-form{
  128.     display: none;
  129.     position: fixed;
  130.     z-index: 1;
  131.     left: 0;
  132.     right: 0;
  133.     width: 100%;
  134.     height: 100%;
  135.     padding-top: 50px;
  136.     background-color: black;
  137.  
  138. }
  139.  
  140. .loginform-content {
  141.     background-color: grey;
  142.     margin: 5% auto 15% auto;
  143.     padding: 13px 13px 13px   ;
  144.     border: 1px solid black;
  145.     width: 15.5%;
  146.     border-radius: 5px;
  147. }
  148.  
  149. hr{
  150.     border: 1px solid #f1f1f1;
  151.    
  152.    
  153.     margin-bottom: 25px;
  154. }
  155.  
  156.  
  157.  input[type=text], input[type=password]{
  158. border-radius: 5px;
  159.     background-color: #f2f2f2;
  160.     padding:20px;
  161.      padding-right: 70px;
  162. }
  163.  
  164. input[type=checkbox]{
  165.     color: white;
  166. }
  167.  
  168. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement