Positioning items against lines
HTML
<!-- Learn about this code on MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout/Basic_Concepts_of_Grid_Layout -->
<div class="wrapper">
<div class="box1">One</div>
<div class="box2">Two</div>
<div class="box3">Three</div>
</div>
CSS
.wrapper {
display: grid;
grid-template-columns: 1fr 7fr;
grid-auto-rows: 100px;
}
.box1 {
grid-column: 1 / 3;
grid-row: 1 / 1;
}
.box2 {
grid-column: 1 / 1;
grid-row: 2 / 2;
}
.box3 {
grid-column: 2 / 2;
grid-row: 2 / 2;
}
.wrapper {
border: 2px solid #f76707;
border-radius: 5px;
background-color: #fff4e6;
}
.wrapper > div {
border: 2px solid #ffa94d;
border-radius: 5px;
background-color: #ffd8a8;
color: #d9480f;
}