| Class | Description | |
|---|---|---|
colPlaces a grid item within columns using an arbitrary grid-column expression, such as span 2. CSS Rules Usage
The .col
class is flagged as a value-driven selector.
The variable --col is required. Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The Shorthand
Value-driven classes support a shorthand syntax like CLS Alert
This feature may cause CLS (Cumulative Layout
Shift). Make sure to include a
| .col | Places a grid item within columns using an arbitrary grid-column expression, such as span 2. |
col-spanSets how many grid columns an item spans via --col-span. CSS Rules Usage
The .col-span
class is flagged as a value-driven selector.
The variables --col-span and --col-span are required. Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The Shorthand
Value-driven classes support a shorthand syntax like CLS Alert
This feature may cause CLS (Cumulative Layout
Shift). Make sure to include a
| .col-span | Sets how many grid columns an item spans via --col-span. |
col-startSets grid-column-start via --col-start. Raw integer. CSS Rules Usage
The .col-start
class is flagged as a value-driven selector.
The variable --col-start is required. Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The Shorthand
Value-driven classes support a shorthand syntax like CLS Alert
This feature may cause CLS (Cumulative Layout
Shift). Make sure to include a
| .col-start | Sets grid-column-start via --col-start. Raw integer. |
col-endSets grid-column-end via --col-end. Raw integer. CSS Rules Usage
The .col-end
class is flagged as a value-driven selector.
The variable --col-end is required. Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The Shorthand
Value-driven classes support a shorthand syntax like CLS Alert
This feature may cause CLS (Cumulative Layout
Shift). Make sure to include a
| .col-end | Sets grid-column-end via --col-end. Raw integer. |
col-autoSets grid-column: auto. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .col-auto | Sets grid-column: auto. |
col-span-fullMakes a grid item span all columns. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .col-span-full | Makes a grid item span all columns. |
col-start-autoSets grid-column-start to auto, letting the grid placement algorithm decide the column start. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .col-start-auto | Sets grid-column-start to auto, letting the grid placement algorithm decide the column start. |
col-end-autoSets grid-column-end to auto, letting the grid placement algorithm decide the column end. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .col-end-auto | Sets grid-column-end to auto, letting the grid placement algorithm decide the column end. |