커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
숙제 질문
[왕초보] 코딩이 처음이어도 쉽게 배우는 웹개발 A to Z v0
3주차
북마크
정*연
댓글
5
추천
0
조회수
15
조회수
15
답변 완료

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

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


빨간색으로 표시된 두 부분

  1. 'Login 버튼'과 'Sign-up버튼' 사이의 간격
  2. 추천 이유와 '기록하기 버튼' 사이의 간격을 어떻게 띄울까요?


스파르타 즉문즉답




작성한 코드 및 에러 메세지

<!DOCTYPE html>

<html lang="en">


<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>숙제</title>

    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"

        integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">

    <style>

        .Bground {

            background-color: green;

            background-size: cover;

            background-image: url('https://images.unsplash.com/photo-1531697218799-ed0ae884c6c8?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2080&q=80');

            height: 600px;

           

        }

        .Mcards {

            background-color: black;

            width: 1200px;

            margin: 20px auto 10px auto;

        }

        .Pbox {

            width: 500px;

            margin: 20px auto 20px 0px;

            padding: 20px 20px 10px 20px;

            background-color: whitesmoke;

            border-radius: 10px;

            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

        }

        .Photo {

            height: 50px;

        }

    </style>

</head>


<body>

    <header class="p-3 text-bg-dark">

        <div class="container">

            <div class="d-flex flex-wrap align-items-center justify-content-center justify-content-lg-start">

                <a href="/" class="d-flex align-items-center mb-2 mb-lg-0 text-white text-decoration-none">

                    <svg class="bi me-2" width="40" height="32" role="img" aria-label="Bootstrap">

                        <use xlink:href="#bootstrap"></use>

                    </svg>

                </a>


                <ul class="nav col-12 col-lg-auto me-lg-auto mb-2 justify-content-center mb-md-0">

                    <img src="https://s3.ap-northeast-2.amazonaws.com/materials.spartacodingclub.kr/food.png"

                        class="Photo">

                    <li><a href="#" class="nav-link px-2 text-danger"><span

                                style="color: orangered;">Foodcourt</span></a></li>

                    <li><a href="#" class="nav-link px-2 text-white"><span style="color: orangered;"></span></a></li>

                    <li><a href="#" class="nav-link px-2 text-white"><span style="color: orangered;">한식</span></a></li>

                    <li><a href="#" class="nav-link px-2 text-white"><span style="color: orangered;">일식</span></a></li>

                    <li><a href="#" class="nav-link px-2 text-white"><span style="color: orangered;">중식</span></a></li>

                    <li><a href="#" class="nav-link px-2 text-white"><span style="color: orangered;">양식</span></a></li>

                </ul>


                <form class="col-12 col-lg-auto mb-3 mb-lg-0 me-lg-3" role="search">

                    <input type="search" class="form-control form-control-dark text-bg-dark" placeholder="Search..."

                        aria-label="Search">

                </form>


                <div class="text-end">

                    <button type="button" class="btn btn-warning">Login</button>

                    <button type="button" class="btn btn-warning">Sign-up</button>

                </div>

            </div>

        </div>

    </header>


    <div class="Bground">

        <div class="p-5 mb-4 bg-body-tertiary rounded-3">

            <div class="container-fluid py-5">

                <h1 class="display-5 fw-bold">스파르타 푸드파이터</h1>

                <p class="col-md-8 fs-4">본인만의 맛집을 소개하는 사이트입니다. 맛집을 소개해 주세요!</p>

                <div class="Pbox">

                    <div class="form-floating mb-3">

                        <input type="email" class="form-control" id="floatingInput" placeholder="음식 이미지 주소">

                        <label for="floatingInput">음식 이미지 주소</label>

                    </div>

                    <div class="form-floating mb-3">

                        <input type="email" class="form-control" id="floatingInput" placeholder="음식명">

                        <label for="floatingInput">음식명</label>

                    </div>

                    <div class="input-group mb-3">

                        <label class="input-group-text" for="inputGroupSelect01">별점</label>

                        <select class="form-select" id="inputGroupSelect01">

                            <option selected>별점 선택</option>

                            <option value="⭐"></option>

                            <option value="⭐⭐">⭐⭐</option>

                            <option value="⭐⭐⭐">⭐⭐⭐</option>

                            <option value="⭐⭐⭐⭐">⭐⭐⭐⭐</option>

                            <option value="⭐⭐⭐⭐⭐">⭐⭐⭐⭐⭐</option>

                        </select>

                    </div>

                    <div class="form-floating">

                        <textarea class="form-control" placeholder="Leave a comment here" id="floatingTextarea"

                            style="height: 78px;"></textarea>

                        <label for="floatingTextarea">추천 이유</label>

                    </div>

                    <div class="Mybut">

                        <button type="button" class="btn btn-danger">기록하기</button>

                    </div>


                </div>

            </div>

        </div>

    </div>


   

    <div class="col mb-3">

        <a href="/" class="d-flex align-items-center mb-3 link-body-emphasis text-decoration-none">

        </a>

        <p class="text-body-secondary">©Teamsparta 2024</p>

    </div>


</body>


</html>


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