커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
margin 똑같이 했는데 칸이 안띄어지는데 뭐가 문제일까요?
undefined주차
북마크
정*호
댓글
5
추천
0
조회수
14
조회수
14
답변 완료
    .mytitle {





            height: 250px;
            width: 100%;
            background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("https://mblogthumb-phinf.pstatic.net/MjAxODA1MjRfMjEw/MDAxNTI3MTczODYzMjg5.-5Yh6uliMulx-Dx1CrMTozvzJQSqLBvPkI_ULOkt5TMg.8ZfYuqVttCiUJUVSKpJy6TmVUlHK3OiaKVtSrQYoc7kg.JPEG.lime2017/1527173850121.jpg?type=w800");
            background-position: center 50%;
            background-size: cover;

            color: white;

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

        }
    .mycomment{

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

            max-width: 500px;
            width: 95%;


            margin: 20px auto 0px auto;
            box-shadow: 0px 0px 3px 0px gray;
            padding: 20px;





    }
      .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;
      }

    </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 class="form-floating">
                    <textarea class="form-control" placeholder="Leave a comment here" id="floatingTextarea2"
                              style="height: 100px"></textarea>
                    <label for="floatingTextarea2">응원댓글</label>
                </div>
                <button type="button" class="btn btn-dark">응원남기기</button>

            </div>


    <div class="mycomment">


    </div>




        </div>>

    </body>

</html>
스파르타 즉문즉답

이런식으로 붙어있네요 ㅜ

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