
코드를 padding-top: 40px; 이라고 썼는데 스파르타 병사가 중앙으로 옮겨지지를 않아요.
강의자료에 있는 코드를 복사 붙이기 했는데도 동일하게 나옵니다. (padding-top: 40px; 부분만요.
"1-6 자주쓰이는 CSS 연습하기" 듣고 있는 중이고
영상 설명 시간데는 6분 22초 입니다.
작성한 코드 및 에러 메세지
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>로그인 페이지</title>
<style>
.mytitle {
background-color: green;
width: 300px;
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;
backgorund-position: center;
border-radius: 10px;
padding-top: 40px;
}
</style>
</head>
<body>
<div class="mytitle">
<h1>로그인 페이지</h1>
<h5>아이디, 비밀번호를 입력해주세요</h5>
</div>
<p>ID: <input type="text"/></p>
<p>PW: <input type="text"/></p>
<p><button> 로그인하기</button></p>
</body>
</html>
오류 발생 시, 작성한 코드 전체와 에러 메시지를 첨부해 주세요.
Tip 1) </> 아이콘을 눌러 코드박스를 만들어 보세요.
Tip 2) Ctrl+A(맥의 경우 Command+A) 단축키로 코드를 한 번에 선택할 수 있어요!
