간단한 로그인페이지(2)

<!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>
    <style>
        *{
            margin: 0;
            padding: 0;
        }

        .container{
            display: flex;
            flex-direction: column;
            margin-top: 200px;
        }

        .content{
            display: flex;
            flex-direction: column;
            justify-content: center;
            margin: 0 auto;
            border: 1px solid black;
            border-radius: 10px;
            padding: 20px;
            background-color:aquamarine;
        }

        .login_image{
            background:linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)), url("image/background_partern.jpg");
            width: 400px;
            height: 300px;
            text-align: center;
            margin-bottom: 20px;
            border: 1px solid black;
            color: white;
            border-radius: 10px;
        }

        .login_image h1{
            display: flex;
            justify-content: center;
            margin-top: 100px;
            margin-bottom: 20px;
        }

        #a{margin-bottom: 10px;}
        #b{margin-bottom: 20px;}
        #c{
            display: flex;
            flex-direction: column;
            text-align: center;
            border: 1px solid black;
            padding:1.6em 0;
            border-radius: 10px;
            background-color: white;
        }
        #d{
            width: 100px;
            color: red;
            margin-left: 140px;
            cursor: pointer;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="content">

            <div class="login_image">
            <h1>로그인페이지</h1>
            <p>아이디와 비밀번호를 입력하세요</p>
            </div>

            <div id="c">
            <p id="a">ID:<input type="text"></p>
            <P id="b">PW:<input type="password"></P>
            <button id="d">로그인하기</button>
            </div>

        </div>
    </div>
</body>
</html>

좋은 웹페이지 즐겨찾기