I am working on creating a grid table with two items having a height of 50% each.
Here is the current structure of my HTML
and Sass
code:
<div class="grid">
<div class="grid__list">
<div class="grid__item">1</div>
<div class="grid__item">2</div>
<div class="grid__item">3</div>
<div class="grid__item">4</div>
<div class="grid__item">5</div>
<div class="grid__item">6</div>
</div>
</div>
.grid
&__list
display: grid
grid-template-columns: repeat(3, 1fr)
grid-template-rows: repeat(3, 1fr)
grid-column-gap: 20px
grid-row-gap: 20px
min-height: 1000px
&__item
border-radius: 5px
background: blue
&:nth-child(1)
grid-area: 1 / 1 / 4 / 2
&:nth-child(2)
grid-area: 1 / 3 / 2 / 4
&:nth-child(3)
grid-area: 2 / 3 / 3 / 4
&:nth-child(4)
grid-area: 3 / 3 / 4 / 4
&:nth-child(5)
grid-area: 1 / 2 / 3 / 3
&:nth-child(6)
grid-area: 3 / 2 / 4 / 3