Admin Login Page Using HTML and CSS

 Admin Login Page Using 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">
    <title>Document</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <div class="login_form">
            <form action="" method="post">
                <h2>Admin Login</h2>
                <input type="text">
                <input type="password">
                <button type="submit">Login</button>
            </form>
        </div>
        <div class="admin_image">
            <img src="admin.png" width="200px">
        </div>
    </div>
</body>
</html>

CSS CODE

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-color: aqua;
}

div.container{
    position: absolute;
    top:50%;
    left: 50%;
    transform: translate(-50%,-50%);
    display: flex;
    flex-direction: row;
    align-items: center;

    background-color: blanchedalmond;
    padding: 30px;

    box-shadow: 5px 5px 3px black;
}

div.container h2{
    color:blue;
    margin-bottom: 20px;
    text-align: center;
}

div.container input{
    border: none;
    outline: none;
    border-radius: 0;
    width: 100%;
    border-bottom: 2px solid red;
    margin-bottom: 25px;
    padding: 7px 10px;
}

div.container button{
    background: green;
    color: honeydew;
    font-size: 25px;
    width: 250px;
    padding: 10px 5px;
    cursor: pointer;
}



Comments

Popular posts from this blog

How to make simple bill maker by using python tkinter

Make a GST Calculator using HTML and JavaScript

Write a program to find the sum of 1/2+4/3+5/6+8/7+9/10 using loop in java