위에서도 드렸던 질문으로 다시 질문드립니다.
해당 답변을 주신 방법으로 저도 해보았지만 해결이 되지 않았습니다.
이슈 코드
.postingbox > buttons { margin-top: 10px; }
전체 코드
<!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>
<style>
.mytitle {
width: 100%;
height: 250px;
background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5)), url("https://movie-phinf.pstatic.net/20210715_95/1626338192428gTnJl_JPEG/movie_image.jpg");
background-position: center;
background-size: cover;
color: white;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.postingbox{
max-width: 500px;
width: 95%;
margin: 20px auto 8px auto;
box-shadow: 3px 3px 3px 3px gray;
padding: 20px;
background-position: center;
background-size: cover;
}
.postingbox > buttons {
margin-top: 10px;
}
</style>
</head>
<body>
<div class="mytitle">
<h1> 재키와이 팬 방명록 </h1>
</div>
<div class="postingbox">
<div class="form-floating mb-3">
<input type="name" class="form-control" id="floatingurl" placeholder="닉네임">
<label for="floatingurl">닉네임</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>
<div class="buttons">
<button type="button" class="btn btn-dark ">기록하기</button>
</div>
</div>
</body>
</html>