
.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>
이런식으로 붙어있네요 ㅜ
