Item positioning

grid items can occupy specific cells or span multiple rows / columns using dedicated properties.
  • grid-column and grid-row: define where an item starts and ends in terms of row / column.
  • grid-area: combines start / end row and column in one property.

Example

In this dynamic example, using grid-column / grid-row we tell the element with the class positioning to occupy columns 1 and 2, and rows 1 and 2. With grid-area, we tell the element with the class positioning to take rows 1 and 2 and column 3.

Select positioning:
ResultLive
html
css