Created
July 10, 2019 12:05
-
-
Save javedbaloch4/bebb0f70a65614f9969a908a6a081686 to your computer and use it in GitHub Desktop.
HTML CSS Login
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <style> | |
| * {margin: 0; padding: 0;} | |
| body { | |
| font-family: calibri; | |
| background: #F3F5F7; | |
| } | |
| #topbar-link { | |
| background: #28abe3; | |
| height: 3px; | |
| } | |
| .login h2 { | |
| text-align: center; | |
| } | |
| .login-box { | |
| background: #FFF; | |
| width: 20%; | |
| padding: 35px; | |
| margin: 20px auto; | |
| box-shadow: 0 1px 2px rgba(30,37,44,.08); | |
| } | |
| form label { | |
| display: block; | |
| margin: 10px 0; | |
| font-size: 16px; | |
| font-weight: 600; | |
| box-sizing: border-box; | |
| color: #49525d; | |
| } | |
| form input { | |
| width: 100%; | |
| padding-left: 10px; | |
| padding-right: 10px; | |
| outline: none; | |
| margin-bottom: 0; | |
| line-height: 48px; | |
| height: 48px; | |
| border: 2px solid #e2e8ed; | |
| border-radius: 4px; | |
| margin-bottom: 10px; | |
| } | |
| form button { | |
| width: 100%; | |
| padding: 14px 20px; | |
| background: #1ca1e3; | |
| border-radius: 5px; | |
| border: none; | |
| color: #FFF; | |
| font-weight: bold; | |
| cursor: pointer; | |
| margin-top: 20px; | |
| } | |
| h1 { | |
| margin-top: 100px; | |
| text-align: center; | |
| font-size: 40px; | |
| font-weight: 100; | |
| } | |
| @media only screen and (max-width: 700px) { | |
| .login-box { | |
| width: 60%; | |
| } | |
| } | |
| </style> | |
| <div id="topbar-link"></div> | |
| <h1>Sign in</h1> | |
| <div class="login-box"> | |
| <form action="login" method="post"> | |
| <label>Username</label> | |
| <input type="text" name="email"> | |
| <label>Password</label> | |
| <input type="password" name="password"> | |
| <button type="submit">Login</button> | |
| </form> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment