CSS grid-area Property
This is used as shorthand property for the grid-row-start, grid-column-start, grid-row-end and the grid-column-end properties.
Syntax -
grid-area: grid-row-start / grid-column-start / grid-row-end / grid-column-end | itemname; |
Now we will see the values with their descriptions :
Value |
Description |
grid-row-start |
This specifies on which row to start displaying the item. |
grid-column-start |
This specifies on which column to start displaying the item. |
grid-row-end |
This specifies how many rows to span. |
grid-column-end |
This specifies how many columns to span. |
Now we will see the example -
Example -
<!DOCTYPE html> |
Output -