h1にリンクがあり、どのページにもリンクがあります。私はh1をクリック可能にしたいだけです。幅が小さくなってもリンクが画面全体に広がります
<section>
<a href="about.html" target="_blank"><h1>
About Me
</h1></a>
</section>
section a {
text-decoration: none;
width: 40vw;
box-sizing: content-box;
}
section a:hover {
text-decoration: none;
}
section h1 {
width: 40vw;
box-sizing: content-box;
}
section {
width: 100vw;
height: 100vh;
background-color: black;
}
ような問題は何ですか? – Fil
@Fil h1に隣接する画面の全幅がクリック可能です。h1が実際にクリック可能な領域のみが必要です – Shniper