Basic example
by R
HTML
<!-- Learn about this code on MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout -->
<div class="wrapper">
<div class="item one">One</div>
<div class="item two">Two</div>
<div class="item three">Three</div>
<div class="item four">Four</div>
<div class="item five">Five</div>
<div class="item six">Six</div>
</div>
CSS
* {
box-sizing: border-box;
}
.wrapper {
margin: 0 auto;
}
.wrapper > div {
border: 2px solid rgb(233, 171, 88);
border-radius: 5px;
background-color: rgba(233, 171, 88, 0.5);
padding: 1em;
color: #d9480f;
}
.item {
/* width: 20%; */
}
.wrapper {
display: grid;
grid-template-columns: repeat(6, 1fr);
grid-gap: 10px;
}