
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
photo-description 문구가 강의대로 따라하면 4번째 문구만 확인됩니다.
해당 문구의 style 코드 일부를 비활성화 하면 사진 아래쪽에 문구가 위치합니다.
어떤 부분을 수정해야 할까요??
[강의를 따라 작성한 코드대로 실행시,]

[일부 코드 비활성화 후]
작성한 코드 및 에러 메세지
<!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>
/* 이서윤체 폰트 적용을 위한 코드 */
@font-face {
font-family: "LeeSeoyun";
src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2202-2@1.0/LeeSeoyun.woff")
format("woff");
font-weight: normal;
font-style: normal;
}
/* body태그 자체에 css 요소 부여 */
body {
font-family: "LeeSeoyun";
margin: 0;
display: flex;
justify-content: center;
background-image: url("./background.png");
}
.container {
width: 390px;
background-color: #ff9d73;
height: 100%;
}
.photos {
margin-top: 30px;
}
.photo-frame {
background-color: white;
margin: 15px 20px;
height: 200px;
background-size: cover;
position: relative;
}
/*하단 영역 스타일링*/
.footer {
display: flex;
flex-direction: column;
align-items: center;
}
.f-title {
color: white;
font-size: 25px;
font-weight: 900;
}
.f-date {
color: white;
font-size: 15px;
font-weight: 500;
}
/*이미지 삽입*/
#image1 {
background-image: url('./상견니1.jpg');
}
#image2 {
background-image: url('./상견니2.jpg');
}
#image3 {
background-image: url('./상견니3.jpeg');
}
#image4 {
background-image: url('./상견니8.jpeg');
}
/*사진 설명 스타일*/
.photo-description {
color: white;
background-color: black;
width: fit-content;
padding: 0 20px;
margin-bottom: 10px;
/*★★★해당 부분을 비활성화해야 사진 위쪽으로 photo-description 텍스트가 뜨는데, 어떻게 수정해야할까요??★★★
border-radius: 10px;
position: absolute;
bottom: 0;
transform: translate(-50%);
left: 50%;
}
*/
</style>
</head>
<body>
<div class="container">
<div class="photos">
<div id="image1" class="photo-frame"> 사진1</div>
<span id="desc1" class="photo-description">
상견니 메인 배우들
</span>
<div id="image2" class="photo-frame"> 사진2</div>
<span id="desc2" class="photo-description">
내 최애 허광한 배우
</span>
<div id="image3" class="photo-frame"> 사진3</div>
<span id="desc3" class="photo-description">
빗속을 뛰어가는 명장면
</span>
<div id="image4" class="photo-frame"> 사진4</div>
<span id="desc4" class="photo-description">
영화에서 드디어 이루어진 사랑
</span>
</div>
<div>
<div class="footer">
<p class="f-title">내가 입덕한 상견니 Time</p>
<p class="f-date">2023.02.08</p>
</div>
</div>
</body>
</html>
