
내용을 남겼었는데 사라졌네요 제목쪽 배경 이미지가 창 크기(해상도)에 따라서 자꾸 변동됩니다. 크기에 상관 없이 제가 원하는 부분에 포커싱이 되도록 반응형 조절을 하고싶은데 어떻게 해야할까요?
<!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>
<link href="https://fonts.googleapis.com/css2?family=Jua&family=Nanum+Brush+Script&display=swap" rel="stylesheet">
<style>
.mytitle {
width: 100%;
height: 400px;
background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.0)), url("https://p4.wallpaperbetter.com/wallpaper/522/657/258/henry-cavill-geralt-of-rivia-the-witcher-hd-wallpaper-preview.jpg");
background-position: top;
background-size: cover;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.mytitle > h1 {
margin: 160px auto 0px auto;
font-weight: 500;
font-size: 500%;
font-family: 'Nanum Brush Script', cursive;
color: white;
text-shadow: 3px 3px 3px rgb(204 204 204);
}
</style>
</head>
<body>
<div class="mytitle">
<h1>위쳐 팬명록</h1>
</div>
</body>
