간단한 로그인 페이지만들기

<!DOCTYPE html>
<html lang="ko">
<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; 
            align-items: center;
            height: 100vh;
    
            

        }

        .header{
            margin-top: 60px;
            height: 350px;
            width: 350px;
            border-radius: 20px;
            text-align: center;
            border: 1px solid black;
            
            color: white;
            background:linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)), url("image/te.jpg");
        }

        .header>h1{
            margin-top: 100px;
            margin-bottom: 40px;
            font-size:35px;
        }

        .section{
            display: flex;
            flex-direction: column; 
            width: 350px;
            height: 170px;
            margin-top: 50px;
            border: 1px solid black;
            border-radius: 20px;
            text-align: center;

        }

        .section p{
            margin-top: 28px;
            margin-bottom: 6px;
        }

        .section button{
            width: 100px;
            margin-left: 78px;
            margin-top: 20px;
        }

    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>로그인 페이지</h1>
            <p>아이디와 비밀번호를 입력해주세요</p>
        </div>

        <div class="section">
            <p>ID:<input type="id"></p>
            <p>PW:<input type="password"></p>
            <button>로그인하기</button>
        </div>
    </div>
</body>
</html>

좋은 웹페이지 즐겨찾기