Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Form</title>
- <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600' rel='stylesheet' type='text/css'>
- <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
- <style>
- html, body {
- min-height: 100%;
- }
- body, div, form, input, select, p {
- padding: 0;
- margin: 0;
- outline: none;
- font-family: Roboto, Arial, sans-serif;
- font-size: 25px;
- color: #666;
- }
- .main-block {
- display: flex;
- justify-content: center;
- align-items: center;
- background: #fff;
- }
- form {
- align-content: center;
- width: 50%;
- padding: 20px;
- }
- fieldset {
- border: none;
- border-top: 1px solid #8ebf42;
- }
- .account-details >div, .personal-details >div >div {
- display: flex;
- align-items: center;
- margin-bottom: 20px;
- }
- input {
- padding: 5px;
- vertical-align: middle;
- }
- button {
- width: 100%;
- padding: 10px 0;
- margin: 10px auto;
- border-radius: 5px;
- border: none;
- background: #8ebf42;
- font-size: 25px;
- font-weight: 600;
- color: #fff;
- }
- button:hover {
- background: #82b534;
- }
- @media (min-width: 568px) {
- .account-details >div, .personal-details >div {
- width: 100%;
- }
- label {
- width: 40%;
- }
- input {
- width: 50%;
- }
- }
- </style>
- </head>
- <body>
- <div class="main-block">
- <form action="/">
- <div class="personal-details">
- <div>
- <div><label>Вашето име</label><input type="text" name="name" required></div>
- </fieldset>
- <fieldset>
- </fieldset>
- <button type="submit" href="/">Click</button>
- </form>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment