Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 3.57 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.   <head>
  4.     <meta charset="UTF-8" />
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6.     <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  7.     <title>Form Styling</title>
  8.     <link
  9.      href="https://fonts.googleapis.com/css?family=Raleway"
  10.      rel="stylesheet"
  11.    />
  12.     <style>
  13.       * {
  14.         /*
  15.         -May want to add "border-box for "box-sizing so padding does not affect width
  16.         -Reset margin and padding
  17.        */
  18.       }
  19.  
  20.       body {
  21.         /*
  22.           -Background color is #344a72
  23.         */
  24.       }
  25.  
  26.       a {
  27.         /*
  28.         Underlined links are ugly :)
  29.        */
  30.       }
  31.  
  32.       #container {
  33.         /*
  34.         -Remember, margin: auto on left and right will center a block element
  35.         -I would also set a "max-width" for responsiveness
  36.         -May want to add some padding
  37.         */
  38.       }
  39.  
  40.       .form-wrap {
  41.         /*
  42.           This is the white area around the form and heading, etc
  43.         */
  44.       }
  45.  
  46.       .form-wrap h1,
  47.       .form-wrap p {
  48.         /*
  49.           May want to center these
  50.         */
  51.       }
  52.  
  53.       .form-wrap .form-group {
  54.         /*
  55.           Each label, input is wrapped in .form-group
  56.         */
  57.       }
  58.  
  59.       .form-wrap .form-group label {
  60.         /*
  61.           Label should be turned into a block element
  62.         */
  63.       }
  64.  
  65.       .form-wrap .form-group input {
  66.         /*
  67.           Inputs should reach accross the .form-wrap 100% and have some padding
  68.         */
  69.       }
  70.  
  71.       .form-wrap button {
  72.         /*
  73.           Button should wrap accross 100% and display as block
  74.           Background color for button is #49c1a2
  75.         */
  76.       }
  77.  
  78.       .form-wrap button:hover {
  79.         /*
  80.           Hover background color for button is #37a08e
  81.         */
  82.       }
  83.  
  84.       .form-wrap .bottom-text {
  85.         /*
  86.           Bottom text is smaller
  87.         */
  88.       }
  89.  
  90.       footer {
  91.         /*
  92.         Should be centered
  93.        */
  94.       }
  95.  
  96.       footer a {
  97.         /*
  98.           Footer link color is #49c1a2
  99.         */
  100.       }
  101.     </style>
  102.   </head>
  103.   <body>
  104.     <div id="container">
  105.       <div class="form-wrap">
  106.         <h1>Sign Up</h1>
  107.         <p>It's free and only takes a minute</p>
  108.         <form>
  109.           <div class="form-group">
  110.             <label for="first-name">First Name</label>
  111.             <input type="text" name="firstName" id="first-name" />
  112.           </div>
  113.           <div class="form-group">
  114.             <label for="last-name">Last Name</label>
  115.             <input type="text" name="lastName" id="last-name" />
  116.           </div>
  117.           <div class="form-group">
  118.             <label for="email">Email</label>
  119.             <input type="email" name="email" id="email" />
  120.           </div>
  121.           <div class="form-group">
  122.             <label for="password">Password</label>
  123.             <input type="password" name="password" id="password" />
  124.           </div>
  125.           <div class="form-group">
  126.             <label for="password2">Confirm Password</label>
  127.             <input type="password" name="pasword2" id="password2" />
  128.           </div>
  129.           <button type="submit" class="btn">Sign Up</button>
  130.           <p class="bottom-text">
  131.             By clicking the Sign Up button, you agree to our
  132.             <a href="#">Terms & Conditions</a> and
  133.            <a href="#">Privacy Policy</a>
  134.          </p>
  135.        </form>
  136.      </div>
  137.      <footer>
  138.        <p>Already have an account? <a href="#">Login Here</a></p>
  139.      </footer>
  140.    </div>
  141.  </body>
  142. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement