커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
웹개발 1주차 숙제 문의
undefined주차
북마크
차*
댓글
5
추천
0
조회수
11
조회수
11
답변 완료
<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"></script>

<title>스파르타코딩클럽 | 차차 연습 페이지</title>
   <link href="https://fonts.googleapis.com/css2?family=Black+Han+Sans&family=Jua&family=Nanum+Myeongjo&family=Noto+Serif+KR:wght@900&display=swap" rel="stylesheet">

  <style>

      * {
            font-family: 'Nanum Myeongjo', serif;
        }

    .mytitle {

        width: 100%;

        height: 250px;


        background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5)), url("https://t1.daumcdn.net/cfile/blog/2270B03A533C61482C");
        background-position: center;
        background-size: cover;

        color: white;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        }
    .mypost{
      max-width: 500px;
      width: 95%;
      margin: 20px auto;

      box-shadow: 0px 0px 3px 0px grey;
      padding: 20px;
    }
    .mybtn {
      margin-top: 15px}


      .wrap {
          max-width: 500px;
          width: 95%;
          margin: 20px auto;
          /*box-shadow: 0px 0px 3px 0px grey;*/
          background-color: white;
          
      }


  </style>
</head>

<body>
  <div class="mytitle">
    <h1>검정치마</h1>
  </div>

  <div class="mypost">
        <div class="form-floating mb-3">
            <input type="email" class="form-control" id="floatingInput" placeholder="name@example.com">
            <label for="floatingInput">닉네임</label>
        </div>


        <div class="form-floating">
            <textarea class="form-control" placeholder="Leave a comment here" id="floatingTextarea"
            style="height: 100px"></textarea>
            <label for="floatingTextarea">응원댓글</label>
        </div>

        <div class="mybtn">
            <button type="button" class="btn btn-dark">응원 남기기</button>

        </div>
  </div>

  <div class="wrap">
      <div class="card">

          <div class="card-body">
              <blockquote class="blockquote mb-0">
                  <p>새로운 앨범 너무 멋져요!</p>
                  <footer class="blockquote-footer">호빵맨</footer>
              </blockquote>
          </div>
      </div>
      <div class="card">

          <div class="card-body">
              <blockquote class="blockquote mb-0">
                  <p>새로운 앨범 너무 멋져요!</p>
                  <footer class="blockquote-footer">호빵맨</footer>
              </blockquote>
          </div>
      </div>
      <div class="card">

          <div class="card-body">
              <blockquote class="blockquote mb-0">
                  <p>새로운 앨범 너무 멋져요!</p>
                  <footer class="blockquote-footer">호빵맨</footer>
              </blockquote>
          </div>
      </div>
  </div>

</body>
</html>

위처럼 코드를 짰는데 card 사이에 여백은 어떻게 만들어야 할까요? 해답을 봐도 잘 모르겠습니다.


그리고 해답 코드에서 궁금한 점이 있습니다.

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



첫번째는 해답 코드에서 id="commet" 로 되어있는 이유가 궁금하고



<button onclick="save_comment()" type="button" class="btn btn-dark">응원 남기기</button>


<button type="button" class="btn btn-dark">응원 남기기</button>


두번째로 위는 해답 코드이고 아래는 제가 남긴 코드인데 둘의 차이는 무엇인가요? 생김새는 비슷한데 차이를 잘 모르겠습니다


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