커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
과제에서 닉네임박스와 버튼의 위치를 맞추고싶은데 잘모르겠습니다.
undefined주차
북마크
정*희
댓글
3
추천
0
조회수
5
조회수
5
답변 완료

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

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


닉네임박스의 위치와 버튼의 위치가 맞지않는데 맞추는 방법을 알고싶습니다.



스파르타 즉문즉답




작성한 코드 및 에러 메세지

<!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>
</head>
<style>
 .mytitle{
      width:100%;
      height: 250px;
      background-image:linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)) ,url("https://cdnimg.melon.co.kr/cm/album/images/101/00/191/10100191_500.jpg?0e733ba07eeb0fd8a39f04a8eb6291fd");
      background-position: center;
      background-size: cover;

      color:white;

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

    }
 .mypost{
     color:gray;
        max-width: 500px;
        width: 95%;
        margin: 20px auto 0px auto;

        box-shadow: 0px 0px 3px gray;
        padding: 20px;
 }
 .mypost > button{
     margin-top: 15px;
 }
 .form-floating{
     margin: 10px auto 0px auto;
 }

 .card {
      max-width: 500px;
        width: 95%;
        margin: 20px auto 0px auto;
 }
</style>

<body>
    <div class="mytitle">
    <h1>볼빨간 사춘기 팬명록</h1>
</div>
    <div class="mypost">
        <div class="form-floating">
            <textarea class="form-control" placeholder="Leave a comment here" id="floatingTextarea"></textarea>
            <label for="floatingTextarea">닉네임</label>
        </div>
        <div class="form-floating">
            <textarea class="form-control" placeholder="Leave a comment here" id="floatingTextarea2"
                      style="height: 100px"></textarea>
            <label for="floatingTextarea2">응원댓글</label>
            <div class='btn'>
                <button type="button" class="btn btn-light">응원남기기</button>
            </div>
        </div>
    </div>
    <div class="card">
      <div class="card-body">
        <blockquote class="blockquote mb-0">
          <p>새로운 앨범 너무 멋져요!</p>
          <footer class="blockquote-footer">호빵맨 <cite title="Source Title"></cite></footer>
        </blockquote>
      </div>
    </div>
    <div class="card">
      <div class="card-body">
        <blockquote class="blockquote mb-0">
          <p>새로운 앨범 너무 멋져요!</p>
          <footer class="blockquote-footer">호빵맨 <cite title="Source Title"></cite></footer>
        </blockquote>
      </div>
    </div>
    <div class="card">
      <div class="card-body">
        <blockquote class="blockquote mb-0">
          <p>새로운 앨범 너무 멋져요!</p>
          <footer class="blockquote-footer">호빵맨 <cite title="Source Title"></cite></footer>
        </blockquote>
      </div>
    </div>
</body>

</html>





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