
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
mytitle로 <h1>과 <button>을 묶었고,
style에 css를 주었는데
강사님 버튼과 달리 저는 버튼이 길더라구요!
button에 width가 100%로 들어가서 그런걸까요?
width를 지워봐도 버튼이 길게나와서 새로고침하고 페이지를 새로 열어도 똑같아서
문의드립니다.

작성한 코드 및 에러 메세지
<!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 { background-color: green; height: 250px; width: 100%; background-image: url("https://movie-phinf.pstatic.net/20210715_95/1626338192428gTnJl_JPEG/movie_image.jpg"); background-size: cover; background-position: center; color: white; display: flex; flex-direction: column; justify-content: center; text-align: center; } </style> </head> <body> <div class="mytitle"> <h1>내 생애 최고의 영화들</h1> <button>영화 기록하기</button> </div> </body> </html>
