
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
상품이미지와 썸네일이미지가 보이지 않습니다. 코드 확인하시고 수정 부탁드려요
작성한 코드 및 에러 메세지
오류 발생 시, 작성한 코드 전체와 에러 메시지를 첨부해 주세요.
Tip 1) </> 아이콘
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>무신사 상품 상세 페이지</title>
<!-- Fontawesome CDN -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"
integrity="sha512-EcSfPtV7F4XZa1V7Osz4lt4blTccwMB8eT1KjxnLUrBnLqcp01sC9Zd2zjKfJ91sE2w1+8gWJkD41HimDCjCA=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<!-- style.css -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<div class="header-wrapper">
<div class="badge">한정 판매</div>
<h1 class="product-title">상품 제목</h1>
</div>
</header>
<main>
<div class="main-wrapper">
<div class="main-left">
<img src="https://image.msscdn.net/images/goods_img/20230206/3061872/3061872_16782434339513_500.jpg"
alt="상품 이미지">
<div class="thumbnail-wrapper">
<img src="https://image.msscdn.net/images/goods_img/20230206/3061872/3061872_16782434339513_500.jpg"
alt="썸네일 이미지 1">
<img src="https://image.msscdn.net/images/goods_img/20230206/3061872/3061872_16782434339513_500.jpg"
alt="썸네일 이미지 2">
<img src="https://image.msscdn.net/images/goods_img/20230206/3061872/3061872_16782434339513_500.jpg"
alt="썸네일 이미지 3">
<img src="https://image.msscdn.net/images/goods_img/20230206/3061872/3061872_16782434339513_500.jpg"
alt="썸네일 이미지 4">
<img src="https://image.msscdn.net/images/goods_img/20230206/3061872/3061872_16782434339513_500.jpg"
alt="썸네일 이미지 5">
<img src="https://image.msscdn.net/images/goods_img/20230206/3061872/3061872_16782434339513_500.jpg"
alt="썸네일 이미지 6">
<img src="https://image.msscdn.net/images/goods_img/20230206/3061872/3061872_16782434339513_500.jpg"
alt="썸네일 이미지 7">
</div>
</div>
<div class="main-right">
<div class="main-right">
<div class="product-info">
<h2 class="info-title">Product Info</h2>
<div class="info-item">
<span class="info-label">제조사</span>
<span class="info-text">테스트 제조사</span>
</div>
<div class="info-item">
<span class="info-label">모델명</span>
<span class="info-text">테스트 모델명</span>
</div>
</div>
<div class="delivery-info">
<h2 class="info-title">Delivery Info</h2>
<div class="info-item">
<span class="info-label">배송비</span>
<span class="info-text">무료</span>
</div>
<div class="info-item">
<span class="info-label">배송 방법</span>
<span class="info-text">CJ 대한통운 택배</span>
</div>
</div>
<div class="price-info">
<h2 class="info-title">Price Info</h2>
<div class="info-item">
<span class="info-label">판매 가격</span>
<span class="info-text">1000000원</span>
</div>
<div class="info-item">
<span class="info-label">적립금</span>
<span class="info-text">10000원</span>
</div>
</div>
<div class="purchase">
<select name="options" id="options">
<option value="">옵션 선택</option>
<option value="1">옵션 1</option>
<option value="2">옵션 2</option>
<option value="3">옵션 3</option>
</select>
<div class="total-price">
<span class="total-label">총 금액</span>
<span class="total-text">1000000원</span>
</div>
<button class="purchase-button">구매하기</button>
</div>
</div><!-- Main right content here -->
</main>
</body>
</html>
style.css
header {
height: 70px;
display: flex;
align-items: center;
justify-content: center;
background-color: #fff;
}
.header-wrapper {
display: flex;
align-items: center;
justify-content: center;
max-width: 1200px;
width: 100%;
padding: 0 20px;
}
.badge {
height: 26px;
padding: 0 10px;
font-size: 14px;
font-weight: bold;
background-color: #000;
color: #fff;
margin-right: 20px;
}
.product-title {
font-size: 24px;
font-weight: bold;
}
main {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
padding: 50px 0;
}
.main-wrapper {
display: flex;
justify-content: space-between;
}
.main-left img {
width: 500px;
height: 600px;
}
.thumbnail-wrapper {
display: flex;
justify-content: space-between;
margin-top: 20px;
}
.thumbnail-wrapper img {
width: 60px;
height: 72px;
}
.main-right {
width: 400px;
margin-left: 20px;
}
.product-info,
.delivery-info,
.price-info,
.purchase {
margin-bottom: 20px;
}
.info-title {
font-size: 18px;
font-weight: bold;
}
.info-item {
display: flex;
justify-content: space-between;
margin-top: 10px;
}
.info-label {
font-weight: bold;
}
.total-price {
display: flex;
justify-content: space-between;
margin-top: 10px;
}
.total-label {
font-weight: bold;
}
.purchase-button {
background-color: #000;
color: #fff;
font-size: 16px;
font-weight: bold;
border: none;
padding: 10px 20px;
margin-top: 20px;
cursor: pointer;
} 코드박스를 만들어 보세요.
Tip 2) Ctrl+A(맥의 경우 Command+A) 단축키로 코드를 한 번에 선택할 수 있어요!
