| Class | Description | |
|---|---|---|
auto-colsSets implicit grid column sizing with an arbitrary grid-auto-columns value. CSS Rules Usage
The .auto-cols
class is flagged as a value-driven selector.
The variable --auto-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
| .auto-cols | Sets implicit grid column sizing with an arbitrary grid-auto-columns value. |
auto-cols-autoSizes implicit grid columns by their natural content size. 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 | .auto-cols-auto | Sizes implicit grid columns by their natural content size. |
auto-cols-frDistributes implicit grid columns evenly using fractional 1fr tracks. 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 | .auto-cols-fr | Distributes implicit grid columns evenly using fractional 1fr tracks. |
auto-cols-maxSizes implicit grid columns to their maximum content size. 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 | .auto-cols-max | Sizes implicit grid columns to their maximum content size. |
auto-cols-minSizes implicit grid columns to their minimum content size. 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 | .auto-cols-min | Sizes implicit grid columns to their minimum content size. |