Tutorial 5
How to Create Login Form in HTML and CSS || Make Styles Login Form || Web Tutorials : Source Code
Hey Guys , Welcome To My Blog :- Web Tutorials || Yuvan Art
Full Process To Create Styles Login Form :- Click On The Below Link To Watch Full Process To Create Styles Login Form Using HTML And CSS.
Part ( 1 ) HTML Code :-
<!-- Styles Login Form - HTML Part -->
<!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">
<title>Login Form</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="form">
<h1>Login Form</h1>
<form action="#" method="POST">
<p>User Name</p>
<input type="text" name="user" placeholder="User Name" required>
<p>Password</p>
<input type="password" name="password" placeholder="Password" required>
<a href="#">Forgot Password?</a>
<button type="submit">Login</button>
</form>
</div>
</body>
</html>
Part ( 2 ) CSS Code :-
/* Styles Login Form - CSS part */
*{
padding: 0;
margin: 0;
font-family: Georgia, 'Times New Roman', Times, serif;
}
body{
background-image: url("banner8.jpg");
background-size: 150%;
background-repeat: no-repeat;
}
.form{
width: 350px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
position: absolute;
color: white;
padding: 15px;
border: 3px solid white;
border-radius: 5px;
background: transparent;
backdrop-filter: blur(8px);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}
h1{
font-size: 35px;
text-align: center;
text-transform: uppercase;
margin: 30px 0;
padding: 5px;
border: 2px solid white;
border-radius: 20px;
box-shadow: inset 5px 5px 3px grey, inset -5px -5px 3px black;
font-family: 'Times New Roman', Times, serif;
}
p{
font-size: 20px;
margin: 15px;
}
input{
font-size: 16px;
width: 94%;
padding: 15px 10px;
border: 0;
outline: none;
border-radius: 10px;
}
button{
font-size: 18px;
font-weight: bold;
margin: 20px 0;
padding: 10px 15px;
width: 50%;
border: none;
border-radius: 10px;
cursor: pointer;
}
a{
color: white;
float: right;
padding-top: 5px;
}
button:hover{
background-color: aqua;
}
a:hover{
color: aqua;
}
Part ( 3 ) Background Image :-
Thank You !!!
Comments
Post a Comment