In this example I'm creating grid cells using just a repeat option:
<div class="test"></div>
.test {
display: grid;
grid-template-rows: 10px 10px 10px repeat(3, 10px);
grid-template-columns: 15px repeat( 3, 10px );
background-color: lime;
gap: 5px;
}
https://jsfiddle.net/anniebbird/s73enpyd/6/
Here is the grid when I inspect it with developer tools:
I wonder is it possible to make those gaps visible with a different color? Basically, I need to show borders between the cells.
Clarification: as I showed in my example my grid will not have child elements, but a variable (and dynamic) number of cells built using the repeat option, that's why it's tricky