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

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <style type="text/css">
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        /*모든 element에 적용되는 것 */


        @font-face {
            font-family: NanumSquareWeb;
            src: local(NanumSquareR),
                local(NanumSquare),
                url(NanumSquareR.eot?#iefix) format('embedded-opentype'),
                url(NanumSquareR.woff) format('woff'),
                url(NanumSquareR.ttf) format('truetype');
            font-style: normal;
            font-weight: normal;
            unicode-range: U+0-10FFFF;
        }

        h1 {
            font-family: NanumSquareWeb, sans-serif;
        }

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

        }

        #login-form {
            width: 250px;
            height: 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;
            background-size: cover;
            width: 90px;
            height: 40px;
        }

        #login-form input[id='Lbutton'] {
            background-color: orange;
            border: none;
            color: white;
            font-family: NanumSquareWeb;
            font-size: large;
            font-weight: bold;
            text-align: center;
            border-radius: 20px;
            width: 100%;
            height: 40px;
            float: left;
        }

        #login-form input[id='Jbutton'] {
            background-color: red;
            font-size: large;
            font-weight: bold;
            text-align: center;
            font-family: NanumSquareWeb;
            border-radius: 20px;
            border: none;
            color: white;
            width: 100%;
            height: 40px;
            float: left;
        }

        @media(min-width: 577px ){
            #login-form {
                height: 200px;
            }
            #login-form input[id='Jbutton'] {
                width: 50%;
            }
            #login-form input[id='Lbutton'] {
                width: 50%;
            }            
        }
    </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>

        <div class="btn">
            <input id="Lbutton" type="button" name="login" value="Login">
            <input id="Jbutton" type="button" name="join" onclick="location.href='join.html'" value="Join">
         </div>  


    </form>
</body>
</html>