Html form design model
Html Code
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Form</title>
- <link rel="stylesheet" href="css/style.css">
- </head>
- <body>
- <div class="form_main">
- <form action="">
- <label for="">1.Name</label><br>
- <input type="text" placeholder="Input your name"><br><br>
- <label for="">2.Phone</label><br>
- <input type="text" placeholder="Input your Phone"><br><br>
- <label for="">3.Email</label><br>
- <input type="email" placeholder="Input your Email"><br><br>
- <label for="">4.Password</label><br>
- <input type="text" placeholder="Input your Password"><br><br>
- <button type="link"><a href="#">Submite</a></button>
- </form>
- </div>
- </body>
- </html>
Style.css
- .form_main {
- height: 700px;
- width: 400px;
- background:linear-gradient(teal,red,green);
- margin: 70px auto;
- display: flex;
- justify-content: center;
- align-items: center;
- border-radius: 50px;
- transition: all linear .3s;
- }
- .form_main:hover{
- box-shadow: 1px 1px 20px black;
- transition: all linear .3s;
- }
- .form_main form input{
- padding: 10px 50px 10px 10px;
- background: transparent;
- border:none;
- border: 2px solid white;
- border-radius: 30px;
- }
- .form_main form label{
- color: white;
- }
- .form_main form input::placeholder{
- color: darkgrey;
- }
- .form_main form button{
- margin-left: 57px;
- background:linear-gradient(magenta,orange);
- padding: 10px 30px;
- border-radius: 30px;
- border: none;
- margin-top: 30px;
- transition: all linear .3s;
- }
- .form_main form button:hover{
- box-shadow: 1px 1px 15px white;
- color: white;
- transition: all linear .3s;
- }
- .form_main form button a{
- color: black;
- font-size:18px;
- }
- /*form part css end*/
CLASS 05 NOTE
Html CSS Note
About Background:
margin=0





No comments
Post a Comment