Items that span all columns/rows using CSS grid layout

I had the same situation and found a clean solution.

Instead of using a huge row span value, try:

grid-column: 1/-1;

As negative number counts from the right, this code specifies the grid-column to the end of the last column.

Note: In case this doesn’t apply, check Jonny Green’s solution in the below comment.

Leave a Comment