Create login form with HTML and CSS...Source code below
Source code HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login Page</title>
<link rel="stylesheet" href="login.css">
</head>
<body>
<form action="#">
<img src="https://cdn1.iconfinder.com/data/icons/instagram-ui-glyph/48/Sed-10-512.png" alt="Logo">
<h2>Login to your account</h2>
<div class="input">
<label for="username">
Username
</label>
<br>
<input type="text" name="username" id="username" placeholder="Enter Username">
<br> <br>
<label for="pass">
Password
</label>
<br>
<input type="text" name="password" id="pass" placeholder="Enter Password">
</div>
<br> <br>
<button value="Login" type="submit">
Log In
</button>
<br> <br>
<div class="lines">
<a href="#">Forgot Password?</a>
<br> <br>
<a href="#" class="new">Create New Account</a>
</div>
</form>
<footer>
<p>
Created by AB Digital Marketers & Web Developers
</p>
</footer>
</body>
</html>
Source code CSS
body {
background-image: url(https://i.pinimg.com/originals/09/6a/35/096a35453660aa9b83ba4ab6d9182d61.jpg);
background-repeat: no-repeat;
color: white;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
a {
text-decoration: none;
color: white;
}
form {
width: 350px;
height: 560px;
background-color: #444;
text-align: center;
top: 25%;
left: 25%;
position: absolute;
}
label {
margin-right: 209px;
font-size: 18px;
}
input {
width: 270px;
height: 40px;
padding-left: 7px;
font-size: 16px;
background: transparent;
color: white;
border-top: 1px solid transparent;
border-right: 1px solid transparent;
border-left: 1px solid crimson;
border-bottom: 1px solid crimson;
outline: none;
}
button {
color: white;
width: 135px;
height: 40px;
font-size: 18px;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
border-bottom-left-radius: 20px;
border-bottom-right-radius: 20px;
border: 1px solid transparent;
background-color: crimson;
outline: none;
}
img {
width: 100px;
height: 100px;
border-bottom: 1px solid crimson;
}
footer {
background-color: #555;
color: #fff;
font-size: 14px;
bottom: 0;
position: fixed;
left: 0;
right: 0;
text-align: center;
}
button:hover {
cursor: pointer;
}
Comments
Post a Comment