Design complex layouts with CSS Grid
.grid-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
gap: 1rem;
justify-items: stretch;
align-items: stretch;
justify-content: start;
align-content: start;
grid-auto-flow: row;
}
<div className="grid grid-cols-3 grid-rows-3 gap-4 justify-items-stretch items-stretch justify-start content-start grid-flow-row">