
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
질문 1: 저는 @import 아래 부터 font-family/color/background-color..등이 왜 하늘색으로 지정이 안돼나요? (은근 신경쓰여요) 혹 색이 바뀌지 않은 경우에도 코딩에 신경써야 하는 부분인가요?
질문 2: 색이 변하는 것은 거두절미하고 <div class="row flex-row wrap"> 입력시 화면처럼 나오는데
전 명령어인 <div class="row"> 일 때는 강의 화면과 동일하게 정럴되었어요. 분명 잘 따라가던 과정이었는데
상하게도 row에 flex-row wrap 더 추가하니 강의 내용과 달라 어떤 점을 잘 못 한 것인지 궁금합니다.
작성한 코드 및 에러 메세지
<!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>2023년 버킷리스트</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Hahmlet:wght@400;500;600;700&display=swap');
*{
font-family: 'Hahmlet', serif;
}
.title {
color: white;
background-color: tomato;
font-size: 24px;
padding: 4px 14px;
border-radius: 8px;
}
bg {
width: 360px;
background-image: url("https://s3.ap-northeast-2.amazonaws.com/materials.spartacodingclub.kr/bucketList/bg-grid.png");
}
.msg {
font-weight: bold;
}
.bucket {
width: 160px;
height: 160px;
}
.img1 {
background-image: url("https://s3.ap-northeast-2.amazonaws.com/materials.spartacodingclub.kr/bucketList/bucket-red.png");
background-size: cover;
background-position: center;
}
.img2 {
background-image: url("https://s3.ap-northeast-2.amazonaws.com/materials.spartacodingclub.kr/bucketList/bucket-lightred.png");
background-size: cover;
background-position: center;
}
</style>
<link rel="stylesheet" type="text/css" href="https://s3.ap-northeast-2.amazonaws.com/materials.spartacodingclub.kr/bucketList/sparta-bucket2.css">
</head>
<body class="bg center">
<h1 class="title">2023 신년계획</h1>
<p class="msg">올해는 꼭 내 것으로 만들자</p>
<div class="row flex-row wrap">
<div class="bucket img1 center">일주일에 책 1권 독서</div>
<div class="bucket img2 center">매일 아침 플랭크</div>
<div class="bucket img2 center">영어 능력 올리기</div>
<div class="bucket img1 center">자격증 3개</div>
<div class="bucket img1 center">하루 감사의 글과 그림 기록</div>
<div class="bucket img2 center">대출 갚기</div>
</div>
</body>
</html>
