I am struggling with creating a layout in CSS that resembles the one shown in this photo:
Here is the HTML structure I have, but I can't figure out how to style it properly.
<ul class="list">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
I've made some attempts at styling it, but it's not working as expected:
.list {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(2, auto);
justify-content: center;
align-items: center;
row-gap: 50px;
column-gap: 30px;
> li {
list-style: none;
&:nth-child(4) {
grid-row-start: 2;
grid-column-start: 1;
grid-column-end: 1;
}
&:nth-child(4) {
grid-row-start: 2;
grid-column-start: 2;
grid-column-end: 2;
}
}
}
Please assist me in solving this issue. Thank you!