mstoyanov7

ico

Oct 11th, 2021
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.00 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.   <head>
  4.     <title>Form</title>
  5.     <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600' rel='stylesheet' type='text/css'>
  6.     <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
  7.     <style>
  8.       html, body {
  9.       min-height: 100%;
  10.       }
  11.       body, div, form, input, select, p {
  12.       padding: 0;
  13.       margin: 0;
  14.       outline: none;
  15.       font-family: Roboto, Arial, sans-serif;
  16.       font-size: 25px;
  17.       color: #666;
  18.       }
  19.  
  20.       .main-block {
  21.       display: flex;
  22.       justify-content: center;
  23.       align-items: center;
  24.       background: #fff;
  25.       }
  26.       form {
  27.         align-content: center;
  28.       width: 50%;
  29.       padding: 20px;
  30.       }
  31.       fieldset {
  32.       border: none;
  33.       border-top: 1px solid #8ebf42;
  34.       }
  35.  
  36.       .account-details >div, .personal-details >div >div {
  37.       display: flex;
  38.       align-items: center;
  39.       margin-bottom: 20px;
  40.       }
  41.  
  42.       input {
  43.       padding: 5px;
  44.       vertical-align: middle;
  45.       }
  46.  
  47.       button {
  48.       width: 100%;
  49.       padding: 10px 0;
  50.       margin: 10px auto;
  51.       border-radius: 5px;
  52.       border: none;
  53.       background: #8ebf42;
  54.       font-size: 25px;
  55.       font-weight: 600;
  56.       color: #fff;
  57.       }
  58.       button:hover {
  59.       background: #82b534;
  60.       }
  61.       @media (min-width: 568px) {
  62.       .account-details >div, .personal-details >div {
  63.       width: 100%;
  64.       }
  65.       label {
  66.       width: 40%;
  67.       }
  68.       input {
  69.       width: 50%;
  70.       }
  71.  
  72.       }
  73.  
  74.     </style>
  75.   </head>
  76.   <body>
  77.     <div class="main-block">
  78.     <form action="/">
  79.  
  80.         <div  class="personal-details">
  81.           <div>
  82.             <div><label>Вашето име</label><input type="text" name="name" required></div>
  83.        
  84.       </fieldset>
  85.       <fieldset>
  86.      
  87.       </fieldset>
  88. <button type="submit" href="/">Click</button>
  89.     </form>
  90.     </div>
  91.   </body>
  92. </html>
Advertisement
Add Comment
Please, Sign In to add comment