Positioning Grid Items Using Line Numbers in CSS Grid
In CSS Grid, you can position items precisely by specifying the start and end grid lines for both columns and rows. Every grid track (row or column) is bordered by numbered grid lines, starting from 1. You can use these line numbers with the grid-column and grid-row properties to control where each item is placed.
Grid lines are numbered starting from 1 at the top-left corner of the grid.
grid-column controls the horizontal placement using start and end line numbers.
grid-row controls the vertical placement using start and end line numbers.
You can use span to make items stretch across multiple rows or columns.