GridPlacement

GridPlacement

Description

Represents the position of a grid item in a single axis.

There are 3 fields which may be set:

  • start: which grid line the item should start at
  • end: which grid line the item should end at
  • span: how many tracks the item should span

The default span is 1. If neither start or end is set then the item will be placed automatically.

Generally, at most two fields should be set. If all three fields are specified then span will be ignored. If end specifies an earlier grid line than start then end will be ignored and the item will have a span of 1.

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout/Line-based_Placement_with_CSS_Grid

Functions