CSS Grid - Text In An Image Grid
The grid can have any number of images - in this case 12. The number of columns is set to 4 on computers, 2 on tablets and 1 on phones.
The text spans two columns and two rows and can be placed anywhere in the grid by defining its column and row position/span using the short form.
.text {
grid-row:row-start / row-end;
grid-column:col-start / col-end
self-align:center
}The text can be self align vertically - in this case it is centered. The other options are start, auto and end.
If viewing this page on a computer, reduce the browser width slowly to see how the grid responds to changes in width.