Grid container (parent element)

Properties that are set on the parent element initially apply to all child elements. However, individual properties can later be overlayed on the child elements. The parent element properties can be set via GridLayout(API).

GridTemplateColumns:

Defines how wide the columns/tracks of the explicit grid are for the grid container.

Grid container (parent element) 1:

GridTemplateRows:

Defines how high the row tracks of the explicit grid are for the grid container.

Grid container (parent element) 2:

GridAutoFlow:

Controls how automatically placed grid items fill free cells in the CSS grid.

Grid container (parent element) 3:

ColumnGap:

Defines the horizontal distance between the column tracks in the CSS grid.

Grid container (parent element) 4:

RowGap:

Defines the vertical spacing between the rows of a CSS grid.

Grid container (parent element) 5:

AlignItems:

Controls the alignment of all grid items in the CSS grid on the block axis (usually vertical). It works within each individual grid cell.

Grid container (parent element) 6:

JustifyItems:

Controls the alignment of all grid items in the CSS grid on the inline axis (usually horizontal). It works within each individual grid cell.

Grid container (parent element) 7:

OverflowX:

Controls what happens if the content is wider in the horizontal direction than its container.

Grid container (parent element) 8:

OverflowY:

Controls what happens if the content is higher in the vertical direction than its container.

Grid container (parent element) 9: