커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
버튼 위치 변경 관련 문의드립니다.
undefined주차
북마크
김*정
댓글
3
추천
0
조회수
8
조회수
8
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.


이전 내용을 실수로 질문 내용 해결 완료 버튼을 눌러버려서ㅜ 다시 문의드립니다. 코드를 남겨달라고 댓글 달아주셨는데 코드 전달드려요


버튼 위치 변경 안됨

<!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>
        .mytitle {
            background-color: aquamarine;
            width: 300px;
            height: 200px;


            border-radius: 10px;
            color: white;


            text-align: center;


            padding: 30px 0px 0px 0px;


            background-image: url('https://www.ancient-origins.net/sites/default/files/field/image/Agesilaus-II-cover.jpg');
            background-position: center;
            background-size: cover;
        }
        .wrap{
            width: 300px;


            margin: 20px auto 0px auto;
        }
        .mybtn{
            margin: 0px auto 0px auto;
        }
    </style>
</head>


<body>
    <div class="wrap">
        <div class="mytitle">
            <h1>로그인 페이지</h1>
            <h5>아이디, 비밀번호를 입력하세요</h5>
        </div>
        <p>ID : <input type="text" /></p>
        <p>PW : <input type="text" /></p>
        <div class="mybtn">
            <button>로그인하기</button>
        </div>
    </div>
</body>


</html>


버튼 위치 변경됨

<!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>
        .mytitle {
            background-color: aquamarine;
            width: 300px;
            height: 200px;


            border-radius: 10px;
            color: white;


            text-align: center;


            padding: 30px 0px 0px 0px;


            background-image: url('https://www.ancient-origins.net/sites/default/files/field/image/Agesilaus-II-cover.jpg');
            background-position: center;
            background-size: cover;
        }
        .wrap{
            width: 300px;


            margin: 20px auto 0px auto;
        }
        .mybtn{
            text-align: center;
        }
    </style>
</head>


<body>
    <div class="wrap">
        <div class="mytitle">
            <h1>로그인 페이지</h1>
            <h5>아이디, 비밀번호를 입력하세요</h5>
        </div>
        <p>ID : <input type="text" /></p>
        <p>PW : <input type="text" /></p>
        <div class="mybtn">
            <button>로그인하기</button>
        </div>
    </div>
</body>


</html>







취소
 공유
취소
댓글 0
댓글 알림
나의얼굴