커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
로그인 페이지
undefined주차
북마크
김*원
댓글
2
추천
0
조회수
9
조회수
9
답변 완료

복습을 하고 있는데 강사님은 그림 전체가 가운데이지만 저는 왼쪽에 위치해 있는데 어떻게 수정하면 강사님처럼 가운데로 오게 할 수 있을까요??





스파르타 즉문즉답


스파르타 즉문즉답




작성한 코드 및 에러 메세지

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>로그인 페이지</title>
    <link href="https://fonts.googleapis.com/css2? family=Noto+Sans+KR:wght@300&display=swap" rel="stylesheet">
<style>
    * {
        font-family: 'Noto Sans KR', sans-serif;
    }
.mytitle {
    background-color: green;

    width: 380px;
    height: 200px;

    color: white;

    text-align: center;

    background-image: url("https://www.ancient-origins.net/sites/default/files/field/image/Agesilaus-II-cover.jpg");
    background-size: cover;
    background-position: center;

    border-radius: 10px;

    padding-top: 40px;
}
.wrap {
    background-color: green;

    width: 300px;
    margin: 0 auto;
}
</style>
<head>
<body>
<div class="wrap">
</div>
    <div class="mytitle">

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


</body>
</html>




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