ahmed0saber

Transparent Login Form in HTML , CSS

Nov 29th, 2020
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.41 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>Login page</title>
  4. <style>
  5. #i1{
  6. position:absolute;}
  7. #d1{
  8. position:absolute;
  9. top:25%;
  10. right:25%;
  11. text-align:center;
  12. box-shadow:0px 0px 10px #000000;}
  13. #t1{
  14. margin:20px 10px 20px 10px;
  15. background-color:#FFFFAA;
  16. padding:5px;
  17. padding-left:10;
  18. border-radius:50px;
  19. transition-duration: 0.5s;}
  20. #t1:focus{
  21. background-color:#4CDF50;
  22. border: 2px solid #000000;}
  23. #t2{
  24. margin:20px 10px 20px 10px;
  25. background-color:#FFFFAA;
  26. padding:5px;
  27. padding-left:10;
  28. border-radius:50px;
  29. transition-duration: 0.5s;}
  30. #t2:focus{
  31. background-color:#4CDF50;
  32. border: 2px solid #000000;}
  33. #b1{
  34. height:35px;
  35. width:75%;
  36. margin:20px 10px 20px 10px;
  37. background-color:#FFFFAA;
  38. color: black;
  39. border: 2px solid #4CAF50;
  40. transition-duration: 0.5s;
  41. cursor: pointer;
  42. border-radius:50px;}
  43. #b1:hover {background-color: #4CAF50;
  44. color: white;
  45. border: 2px solid #000000;}
  46. #p1{
  47. text-shadow:1px 1px #000000;
  48. color:#ffffff;
  49. font-size:20px;}
  50. </style>
  51. </head>
  52. <body>
  53. <img src="https://i.ibb.co/LJRkQDk/leaves-yellow-orange-dry-branch-autumn-blur-wallpaper-4k-ult.jpg" id="i1" alt="background image" width="1332px" height="850px">
  54. <div id="d1">
  55. <form>
  56. <br/><i><span id="p1">Login Form</span></i><br />
  57. <input type="text" placeholder="Email" id="t1" required/><br />
  58. <input type="password" placeholder="Password" id="t2" required/><br />
  59. <input type="submit" value="Log in" id="b1" /><br />
  60. </form>
  61. </div>
  62. </body>
  63. </html>
Advertisement
Add Comment
Please, Sign In to add comment