커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
코드스니펫 오류
undefined주차
북마크
장*원
댓글
7
추천
0
조회수
14
조회수
14
답변 완료
<!--스파르타 사진 + 로그인 페이지-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ㅎㅇ</title>
    <link href="https://fonts.googleapis.com/css2?family=Gowun+Dodum&display=swap" rel="stylesheet">
    <style>
        * {
            font-family: 'Gowun Dodum', sans-serif;
        }
        .mytitle {
            width: 100%;
            height: 250px;

            color : white;

            text-align: center;
            background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("https://movie-phinf.pstatic.net/20210715_95/1626338192428gTnJl_JPEG/movie_image.jpg");
            background-size : cover;
            background-position: center;


            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;

            border-radius: 10px;
            padding-top: 40px ;
        }
        .mybtn {
            /*바깥 여백*/
            margin: 20px;

            /*안쪽 여백*/
            padding: 20px;
        }

        .wrap
        {
            /*300만큼 상하좌우 다 밀어라(오토가 상하좌우, 상은 페이지 위에니까 안밀린다)*/

            margin : auto;
        }
        .mytitle > button {
            width: 200px;
            height: 50px;

            background-color: transparent;
            color: white;

            border-radius: 50px;
            border: 1px solid white;

            margin-top: 10px;
        }

        .mytitle > button:hover {
             border: 2px solid white;
        }


        .mytitle > button {

            width: 200px;
            height: 50px;

            /*백그라운드 컬러를 투명하게*/
            background-color: transparent;
            color: white;

            border-radius: 50px;
            /*선굵기, 실선, 흰색*/
            border: 1px solid white;
            /*위에 공간*/
            margin-top: 10px;
        }

        .mytitle > button:hover {
            border: 2px solid white;
        }
    </style>
</head>

<body>
    <div class="mytitle">
        <h1>내 생에 최고의 영화들</h1>
            <button type="button" class="btn btn-outline-light">영화 기록하기</button>
            </div>

    <div class="row row-cols-1 row-cols-md-4 g-4">
        <div class="col">
            <div class="card">
                <img src="https://movie-phinf.pstatic.net/20210728_221/1627440327667GyoYj_JPEG/movie_image.jpg" class="card-img-top" alt="...">
                <div class="card-body">
                    <h5 class="card-title">여기에 제목이 들어갑니다</h5>
                    <p class="card-text">여기에 내용이 들어가지요</p>
                </div>
            </div>
        </div>
        <div class="col">
            <div class="card">
                <img src="..." class="card-img-top" alt="...">
                <div class="card-body">
                    <h5 class="card-title">Card title</h5>
                    <p class="card-text">This is a longer card with supporting text below as a natural lead-in to
                        additional content. This content is a little bit longer.</p>
                </div>
            </div>
        </div>
        <div class="col">
            <div class="card">
                <img src="..." class="card-img-top" alt="...">
                <div class="card-body">
                    <h5 class="card-title">Card title</h5>
                    <p class="card-text">This is a longer card with supporting text below as a natural lead-in to
                        additional content.</p>
                </div>
            </div>
        </div>
        <div class="col">
            <div class="card">
                <img src="..." class="card-img-top" alt="...">
                <div class="card-body">
                    <h5 class="card-title">Card title</h5>
                    <p class="card-text">This is a longer card with supporting text below as a natural lead-in to
                        additional content. This content is a little bit longer.</p>
                </div>
            </div>
        </div>
    </div>

</body>
</html>

스파르타 즉문즉답

코드스니펫을 썼는데 이렇게 나오네요.. 어떻게 해결하나요?

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