
<!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://w.namu.la/s/2e8917ab574874a19d5161d77bc0ab871da74c4ad919321f6629cc029a71118fa63dbe25213eabc5177f6daf0d92cd524847301c6c0f37436ccefcd0fa2b9425bb502b8f476823d054949977217dc8c8d0a388d2495eece2c573b13cf16b9d4169dbadb1d39426cbb79d5eebbc5f41ee"); background-position: center; background-size: cover; color: white; display: flex; flex-direction: column; align-items: center; justify-content: center; } .mypost{ width: 500px; margin: 20px auto 20px auto; /* 위쪽 여백 20, 가운데 정렬, 아래쪽 여백 0*/ box-shadow: 0px 0px 3px 3px gray ; padding: 20px; } .mypost>mybtn{ margin-top: 10px; } </style> <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> <div class="form-floating"> <textarea class="form-control" placeholder="Leave a comment here" id="floatingTextarea"></textarea> <label for="floatingTextarea">응원댓글</label> </div> <div class="mybtn"> <button 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">graceful</footer> </blockquote> </div> <div class="card-body"> <blockquote class="blockquote mb-0"> <p>행복하게 노래하시는 모습을 응원합니다.</p> <footer class="blockquote-footer">graceful</footer> </blockquote> </div> <div class="card-body"> <blockquote class="blockquote mb-0"> <p>행복하게 노래하시는 모습을 응원합니다.</p> <footer class="blockquote-footer">graceful</footer> </blockquote> </div> </div> </body> </html>
