| Class | Description | |
|---|---|---|
bg-sizeSets background-size via --bg-size. E.g. 50%, 200px. CSS Rules Usage
The .bg-size
class is flagged as a value-driven selector.
The variable --bg-size 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
| .bg-size | Sets background-size via --bg-size. E.g. 50%, 200px. |
bg-autoDisplays the background image at its original 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 | .bg-auto | Displays the background image at its original size. |
bg-coverSets background-size: cover. Image fills the entire container. 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 | .bg-cover | Sets background-size: cover. Image fills the entire container. |
bg-containSets background-size: contain. Image fits within the container. 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 | .bg-contain | Sets background-size: contain. Image fits within the container. |