Monday 14 March 2022

Login Page in html and css



html code:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Document</title>
</head>
<body>
<div class="circle1"></div>
<div class="circle2"></div>
<div class="container">
<h1 id="heading1">Login Here</h1>
<label id="username">Usernme</label><br>
<input type="email" id="email" placeholder="Email" required><br>
<label id="Pa">Password</label>
<input type="email" id="password" placeholder="Password" required><br>
<button id="submit">Log In</button>
<button id="submit1">Google</button>
<button id="submit2">Facebook</button>
</div>
</body>
</html>
 

 

Css COde 

*{
margin: 0;
padding: 0;
font-family: sans-serif;
}
body{
background-color: rgb(0, 0, 0);
}
.circle1{
width: 141px;
height: 138px;
background: rgba(13, 0, 255, 0.89);
box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
border-radius: 100px;
position: relative;
bottom: -20px;
left: 410px;
}
.circle2{
width: 141px;
height: 138px;
background: rgba(255, 115, 0, 0.89);
box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
border-radius: 100px;
position: relative;
bottom: -100px;
left: 47.6em;
top: 17.5em;
}
.container{
background: #fffdfd2a;
width: 352px;
height: 422px;
position: absolute;
top: 5em;
left: 30em;
border-radius: 13px;
box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}
#heading1{
font-family: Georgia;
font-size: 32px;
padding-left: 73px;
position: relative;
top: 10px;
color: aliceblue;
text-shadow: #a100002a;
font-weight: 300;
}
#username{
font-family: Georgia;
color: aliceblue;
text-shadow: #a100002a;
padding-left: 20px;
font-weight: 300;
font-size: 20px;
position: relative;
bottom: -1.5em;
}
#Pa{
font-family: Georgia;
color: aliceblue;
text-shadow: #a100002a;
padding-left: 20px;
font-weight: 300;
font-size: 20px;
position: relative;
bottom: -3.5em;
}
#email{
width: 299px;
height: 37px;
margin-left: 24px;
border-radius: 12px;
background-color: #4e4c4cad;
border: none;
padding-left: 24px;
position: relative;
left: -7px;
top: 3em;
}
#password{
width: 299px;
height: 37px;
margin-left: 24px;
border-radius: 12px;
background-color: #4e4c4cad;
border: none;
padding-left: 24px;
position: relative;
left: -7px;
border-style: none;
top: 6em;
}
#submit{
border-radius: 4px;
width: 300px;
height: 40px;
position: absolute;
top: 20em;
left: 1.6em;
border: none;
background: rgb(168, 161, 161);
color:#000
}
#submit:hover{
background-color: #ffff;
}
#submit1{
border-radius: 4px;
width: 150px;
height: 40px;
position: absolute;
top: 24em;
left: 1.6em;
border: 1px solid rgb(17, 17, 17);
background: rgba(168, 161, 161, 0);
color:#000
}
#submit1:hover{
background-color: #fff;
}
#submit2{
border-radius: 4px;
width: 150px;
height: 40px;
position: absolute;
top: 24em;
left: 12.6em;
border: 1px solid rgb(17, 17, 17);
background: rgba(168, 161, 161, 0);
color:#000
}
#submit2:hover{
background-color: #fff;
}

 

No comments:

Post a Comment

How to install and setup java in Windows

 Step 1:          first, you want to ensure that the JDK is installed in your system                        Then press Windows +  R  key  as...