Can't reason how to span grid item?
Hello everyone.
I am new to CSS grid.
Given this code
I want the grid item which contains
I can get it work but can't reason why setting
Setting only
It would be glad if someone help me figure it out or if there is the reference/document for this behavior.
Here is the codepen :
https://codepen.io/aaronamm/pen/bNNzXqM?editors=1100
Thank you so much.
I am new to CSS grid.
Given this code
I want the grid item which contains
D to expand for 2 rows and position at column 2.I can get it work but can't reason why setting
grid-row: 2 / span 2 needs grid-column-start: 2 unless it will be moved to column 1.Setting only
grid-row-start: span 2, grid-row-end: span 2 or grid-row: span 2 works without setting grid-column-start: 2 , It would be glad if someone help me figure it out or if there is the reference/document for this behavior.
Here is the codepen :
https://codepen.io/aaronamm/pen/bNNzXqM?editors=1100
Thank you so much.

