Hey everyone, I've encountered an issue with my link placement in the grid. I'm looking to turn the entire box into a clickable link.
* {
padding: 0;
margin: 0;
}
body {
font-family: Hiragino Kaku Gothic Pro W3, Arial;
}
.title-container {
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-template-rows: auto;
gap: 1px;
background-color: #000000;
padding: 1px;
}
.title {
grid-area: title;
background-color: #FFFFFF;
padding: 10px;
text-align: center;
font-size: 34px;
color: #000000;
grid-column: 1 / span 5;
}
.container {
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-template-rows: auto;
gap: 1px;
background-color: #000000;
padding: 1px;
}
.container div {
background-color: #FFFFFF;
padding: 10px;
text-align: center;
font-size: 28px;
color: #000000;
}
.header {
background-color: #86a789 !important;
color: #000000;
font-size: 28px;
color: #FFFFFF !important;
}
.header2 {
background-color: #739072 !important;
color: #000000;
font-size: 28px;
color: #FFFFFF !important;
grid-column: 2 / span 5;
}
.header3 {
background-color: #739072 !important;
color: #000000;
font-size: 28px;
color: #FFFFFF !important;
grid-column: 1 / 2;
}
.header4 {
background-color: #739072 !important;
color: #000000;
font-size: 28px;
color: #FFFFFF !important;
grid-column: 1;
grid-row: 7 / span 2;
align-content: center;
}
.arrow {
font-size: 28px;
color: #739072;
}
.size {
grid-column: 2 / span 2;
text-decoration: none;
}
.size2 {
grid-column: 4 / span 2;
}
.empty {
background-color: #e5e5e5 !important;
grid-column: 4 / span 2;
}
.empty2 {
background-color: #e5e5e5 !important;
}
<div class="title-container">
<div class="title">
<p style="color: #739072 !important; float: left; text-align: left; "><b>リード選びチャート</b><br>愛犬の性格、体重に合わせてリードを選びましょう!</p><img src="flexi-logo.png" width="12%" style="float: right;">
</div>
</div>
<div class="container">
<div class="header"><b>愛犬の性格</b></div>
<div class="header2"><b>愛犬の体重</b></div>
<div class="header3">おとなしい</div>
<div>9 - 15 kg</div>
<div>16 - 20 kg</div>
<div>21 - 25 kg</div>
<div>26 - 30 kg</div>
<div class="header3">普通</div>
<div>9 - 15 kg</div>
<div>16 - 20 kg</div>
<div>21 - 25 kg</div>
<div>26 - 30 kg</div>
<div class="header3">活発</div>
<div>9 - 15 kg</div>
<div>16 - 20 kg</div>
<div>21 - 25 kg</div>
<div>26 - 30 kg</div>
<div class="header3">とても活発</div>
<div>9 - 15 kg</div>
<div>16 - 20 kg</div>
<div>21 - 25 kg</div>
<div>26 - 30 kg</div>
<div class="header3">リードの種類</div>
<div><img src="arrowonly.gif"></div>
<div><img src="arrowonly.gif"></div>
<div><img src="arrowonly.gif"></div>
<div><img src="arrowonly.gif"></div>
<div class="header4">コードタイプ</div>
<div class="size"><a href="">Sサイズ(5m)</a></div>
<div class="empty"></div>
<div class="size">Sサイズ(8m)</div>
<div class="empty"></div>
<div class="header3">とても活発</div>
<div class="empty2"></div>
<div>Sサイズ</div>
<div class="size2">Mサイズ</div>
</div>
I'm struggling with placing a link under header 4 code. I want it within the box but can't figure out how to do it. Any suggestions on how to accomplish this would be greatly appreciated!
Thank you for your help!