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


작성한 코드 및 에러 메세지
<!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>
