커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
선생님이랑 화면이 달라요
undefined주차
북마크
이*현
댓글
8
추천
0
조회수
19
조회수
19
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.



"row flex-row wrap" 적으니까 이렇게 가로 배열로 바뀌어요!

선생님은 2열로 배열이 되던데, 저는 왜 이렇게 되는걸까요?ㅠㅠ




<!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=Dongle:wght@400;700&family=Single+Day&display=swap');


        * {

            font-family: 'Dongle', sans-serif;

            font-family: 'Single Day', cursive;

        }


        .title {

            color: white;

            background-color: tan;

            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 New Year Resolution</h1>

    <p class="msg">Slow and Steady</p>

    <div class="row flex-row wrap">

        <div class="bucket img1 center">이직</div>

        <div class="bucket img2 center">주3회 운동</div>

        <div class="bucket img2 center">음식 절제</div>

        <div class="bucket img1 center">독서모임 기획</div>

        <div class="bucket img1 center">해외여행</div>

        <div class="bucket img2 center">영어공부</div>

    </div>


</body>


</html>

취소
 공유
취소
댓글 0
댓글 알림
나의얼굴