커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
1주차 숙제 문의 드립니다.
undefined주차
북마크
박*선
댓글
3
추천
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=Nanum+Gothic+Coding&display=swap" rel="stylesheet">

  <style>
    * {
      font-family: 'Nanum Gothic Coding', swap;
    }

      .mytitle {
        height: 500px;
        width: 100%;

        background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("https://search.pstatic.net/common/?src=http%3A%2F%2Fblogfiles.naver.net%2FMjAyMTA0MjNfMjEz%2FMDAxNjE5MTgzOTUyNDU0.U6s5KDr65R5caiSWfVjPWqOoRDufNcjJoz14Y8ZVWE4g._BiQhPYJYjueBB7Z6IFrr7aDSAvIjR-M-_UbTLBY9jAg.JPEG.cwmylee%2FIMG_2918.JPG&type=sc960_832");
        background-size: center;

        color: white;

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

    }

      .mypost{
        max-width:500px;

        width: 95%;

        margin: 20px auto 0px auto;

        box-shadow: 0px 0px 3px 0px gray;

        padding: 20px;
            }
      .mypost>button {
        margin-top 10px;
      }

      .card{
        max-width: 500px;

        width: 95%;

        margin: 20px auto 0px auto;

        padding: 20px;
      }

  </style>
</head>

<body>
    <div class="mytitle">
      <h1>십센치(10cm) 팬명록</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>

      <button onclick="save_comment()" type="button" class="btn btn-dark" >응원 남기기</button>
    </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 class="card">
    <div class="card-body">
      <blockquote class="blockquote mb-0">
        <p>새로운 앨범 너무 멋져요!</p>
        <footer class="blockquote-footer">호빵맨</footer>
      </blockquote>
    </div>
      </div>



</body>

</html>


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