Html form design model

 








Html Code

  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. <title>Form</title>
  7. <link rel="stylesheet" href="css/style.css">
  8. </head>
  9. <body>

  10. <div class="form_main">
  11. <form action="">

  12. <label for="">1.Name</label><br>
  13. <input type="text" placeholder="Input your name"><br><br>

  14. <label for="">2.Phone</label><br>
  15. <input type="text" placeholder="Input your Phone"><br><br>

  16. <label for="">3.Email</label><br>
  17. <input type="email" placeholder="Input your Email"><br><br>

  18. <label for="">4.Password</label><br>
  19. <input type="text" placeholder="Input your Password"><br><br>
  20. <button type="link"><a href="#">Submite</a></button>

  21. </form>




  22. </div>
  23. </body>
  24. </html>

Style.css

  1. .form_main {
  2.     height: 700px;
  3.     width: 400px;
  4.     background:linear-gradient(teal,red,green);
  5.     margin: 70px auto;
  6.     display: flex;
  7.     justify-content: center;
  8.     align-items: center;
  9.     border-radius: 50px;
  10.     transition: all linear .3s;
  11. }
  12. .form_main:hover{
  13.     box-shadow: 1px 1px 20px black;
  14.     transition: all linear .3s;
  15. }
  16. .form_main form input{
  17.     padding: 10px 50px 10px 10px;
  18.     background: transparent;
  19.     border:none;
  20.     border: 2px solid white;
  21.     border-radius: 30px;

  22. }
  23. .form_main form label{
  24.     color: white;
  25. }
  26. .form_main form input::placeholder{
  27.     color: darkgrey;
  28. }
  29. .form_main form button{
  30.     margin-left: 57px;
  31.     background:linear-gradient(magenta,orange);
  32.     padding: 10px 30px;
  33.     border-radius: 30px;
  34.     border: none;
  35.     margin-top: 30px;
  36.     transition: all linear .3s;

  37. }
  38. .form_main form button:hover{
  39.     box-shadow: 1px 1px 15px white;
  40.     color: white;
  41.     transition: all linear .3s;

  42. }
  43. .form_main form button a{
  44.     color: black;
  45.     font-size:18px;
  46. }

  47. /*form part css end*/
CLASS 05 NOTE


Html CSS Note

About Background:

1.background=url(../image/name.png) 2.background position=center 3.background repeat=no repeat 4.background size=cover 5.background attachment=fixed About Menu: 1.Class Name text-align=center background color=teal 2.Class Name ul display=inline flex 3.ul list style=none 4.Class Name ul li height=50px width=100px 5.Class Name ul li a color=black 6. * padding=0
margin=0

No comments

Powered by Blogger.
Youtube Channel Image
ABS EMON Subscribe To watch more video Tutorials
Subscribe