Hello friends how are you , Today in this post "Transparent Login Form in HTML and CSS " i am going to teach you how you can create a transparent Login form using very simple lines of HTML and CSS code and without JavaScript. If you wan to create a website or something interesting using simple HTML and CSS then this post is for you.
If you want to understand this through video then watch this video i have explained it step by step live
Now i am going to explain step by step.
Step 1:Create a Folder: Just create a folder with any name and in any drive in your system, In my case my folder name is MyLogin.
Step 2:Create an HTML file: Now open notepad and type the below code or you can copy this code for your personal use
<html> <head> <title>krazyprogrammers</title> <style> body { margin: 0; background-image: url('bg.jpg'); } .outer { height: 100%; background-color: rgba(0,0,0,0.5); } .container { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 300px; height: 300px; text-align: center; box-shadow: 1px 1px 15px cyan; padding: 10px; background-color: rgba(0,0,0,0.3); } .login { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); } .container input { border-radius: 100px; color: cyan; background-color: rgba(0, 0, 0, 0); font-weight: bold; margin: 10px; padding: 5px; width: 200px; border: 1px solid cyan; letter-spacing: 5px; font-family: arial; text-align: center; transition: 1.5s; } </style> </head> <body> <div class="outer"> <div class="container"> <div class="login"> <div> <img src="login.png" style="width: 30%;margin-bottom: 30px;border-radius: 100px;box-shadow: 1px 1px 10px cyan;"> </div> <div> <input type="text" placeholder="USERNAME"> </div> <div> <input type="password" placeholder="PASSWORD"> </div> <div> <input type="submit" value="LOGIN"> </div> </div> </div> </div> </body> </html>
0 Comments