You can override the default grid positioning and specify specific grid row and column indices for grid items using the grid-column.
A grid item can be made to span multiple columns by using the grid-column-start, and grid-column-end.
grid-column properties can also be used as a shorthand for these properties.
Syntax -
grid-column: grid-column-start / grid-column-end; |
Now we will see the example -
Example -
<html> |
Output -