我的网格项目没有按照预期的方式跨越,我不确定如何修复它。
我将发布我目前拥有的代码,但到目前为止我已经尝试了很多不同的方法,但没有一个有效。
这就是代码的样子和它应该的样子,我将它基于我以前制作的 Wix 网站,现在我正在学习 html 和 css,我正在尝试重新创建和改进它。
我该怎么做才能使“留言...”部分跨越两列和复选框?
.connect-section {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 25px;
}
.connect-fieldset {
display: grid;
color: rgb(73, 172, 255);
grid-template-columns: 1fr 1fr;
grid-template-rows: repeat(8, auto);
font-size: 14px;
}
input,
textarea {
border: none;
margin: 10px 0;
width: 90%;
height: 3em;
font-size: 13px;
}
input[type="submit"] {
margin: 30px auto auto auto;
width: 100%;
max-width: 500px;
color: rgb(73, 172, 255);
font-size: 18px;
border-radius: 5px;
background-color: white;
cursor: pointer;
}
input[type="submit"]:hover {
background-color: rgb(73, 172, 255);
color: white;
}
input {
display: block;
margin-bottom: 10px;
}
.message {
grid-column: 1 / span 2;
grid-row: 7 / 8;
height: 150px;
width: 100%;
}
.terms {
grid-column: 1 / span 2;
grid-row: 8 / 9;
}
fieldset {
border: none;
margin: 0;
padding: 0;
}
label {
border: none;
border-bottom: 1px solid rgb(73, 172, 255);
margin: 10px 15px;
}