I am trying to get the following layout using grid:
This is my code so far. Row gap and column gap are not quite right in the output. I'm not sure if there is any other property that needs to be set.
div.grid-container {
display: grid;
grid-template-columns: 50% 50%;
column-gap: 1px;
row-gap: 1px;
}
div.box-small {
width: 30px;
height: 30px;
background: gray;
}
div.box-big {
width: 50px;
height: 50px;
background: gray;
}
<div class="grid-container">
<div class="box-small"></div>
<div class="box-big"></div>
<div class="box-small"></div>
<div class="box-small"></div>
</div>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…