| Class | Description | |
|---|---|---|
grid-colsSets grid-template-columns with N equal columns via --grid-cols. Use [grid-cols] for custom track definitions. CSS Rules Usage
The .grid-cols
class is flagged as a value-driven selector.
The variable --grid-cols 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
| .grid-cols | Sets grid-template-columns with N equal columns via --grid-cols. Use [grid-cols] for custom track definitions. |
[grid-cols]Defines grid column tracks using raw --grid-cols. Useful for custom grid templates. CSS Rules Usage
The .[grid-cols]
class is flagged as a value-driven selector.
The variable --grid-cols 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
| .[grid-cols] | Defines grid column tracks using raw --grid-cols. Useful for custom grid templates. |
grid-cols-noneRemoves grid-template-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 | .grid-cols-none | Removes grid-template-columns. |
grid-cols-subgridSets grid-template-columns: subgrid. Inherits column tracks from the parent grid. 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 | .grid-cols-subgrid | Sets grid-template-columns: subgrid. Inherits column tracks from the parent grid. |