login.html 1.68 KB
<!DOCTYPE html>
<html lang="ko">

<head>
    <style type="text/css">
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            
        }

        body {
            font-family: "맑은 고딕";
            font-size: 0.75em;
            color: #333;

        }

        #login-form {
            width: 250px;
            margin: 100px auto;
            border: 10px solid skyblue;
            border-radius: 5px;
            padding: 15px;
        }

        #login-form label {
            display: block;
        }

        #login-form label {
            margin-top: 10px;
        }

        #login-form input {
            margin-top: 5px;
        }

       
        /* 애트리뷰트 선택자 */
        #login-form input[type='image'] {
            margin: 0px auto;
            width: 90px;
            height: 40px;
        }
        #login-form input[type='button'] {
            background: url( "images/join.png" ) no-repeat;
            background-position: center center;
            background-size: contain;
            border: none;
            width: 90px;
            height: 50px;
        }
     
    </style>


</head>

<body>
    <form id="login-form" action="#" method="POST">

        <label class="Legend" for="id">아이디</label>
        <input id="id" type="text" maxlength="20" name="userid" />

        <label class="Legend" for="password">패스워드</label>
        <input id="password" type="password" maxlength="20" name="userpassword"/>
        </br></br>

        <input type="image" src="images/login_btn.png" value="로그인">
        <input type="button" onclick="location.href='join.html'"/>

    </form>
</body>

</html>