# Background Image

Set the background image of an element.

**Widely available.** This feature is well established and works across many devices and browser versions.

Chrome 1 · Edge 12 · Firefox 3.6 · Safari 1.3

| Class | Properties | Value |
|-------|------------|-------|
| `bi-lg:b` | background-image | `linear-gradient(to bottom, oklch(1 0 0 / .18), oklch(0 0 0 / .14))` |
| `bi-lg:l` | background-image | `linear-gradient(to left, oklch(1 0 0 / .18), oklch(0 0 0 / .14))` |
| `bi-lg:none` | background-image | `none` |
| `bi-lg:r` | background-image | `linear-gradient(to right, oklch(1 0 0 / .18), oklch(0 0 0 / .14))` |
| `bi-lg:t` | background-image | `linear-gradient(to top, oklch(1 0 0 / .18), oklch(0 0 0 / .14))` |

## Variants

Prefix any class with a variant to apply it only under that condition. Variants stack, as in `@md:h:bi-lg:none`.

### Breakpoints

Apply a class from a viewport width up. Each breakpoint covers its width & every width above it.

| Class | Applies |
|-------|---------|
| `@xs:bi-lg:none` | From 32rem up. |
| `@sm:bi-lg:none` | From 40rem up. |
| `@md:bi-lg:none` | From 48rem up. |
| `@lg:bi-lg:none` | From 64rem up. |
| `@xl:bi-lg:none` | From 80rem up. |
| `@xxl:bi-lg:none` | From 96rem up. |

### Containers

Apply a class from a container's width up, not the viewport's. Mark the parent with `ct:is` first.

| Class | Applies |
|-------|---------|
| `@c:xs:bi-lg:none` | Container from 32rem up. |
| `@c:sm:bi-lg:none` | Container from 40rem up. |
| `@c:md:bi-lg:none` | Container from 48rem up. |
| `@c:lg:bi-lg:none` | Container from 64rem up. |
| `@c:xl:bi-lg:none` | Container from 80rem up. |
| `@c:xxl:bi-lg:none` | Container from 96rem up. |

### Media

Apply a class when the device or the page matches a condition, or on the first frame an element renders.

| Class | Applies |
|-------|---------|
| `@pc:bi-lg:none` | On a touch screen. |
| `@prm:bi-lg:none` | With reduced motion on. |
| `@st:bi-lg:none` | On the first frame. |

### States

Apply a class only while the element is in a state, such as hovered, focused or checked.

| Class | Applies |
|-------|---------|
| `h:bi-lg:none` | On :hover. |
| `f:bi-lg:none` | On :focus. |
| `fv:bi-lg:none` | On :focus-visible. |
| `a:bi-lg:none` | On :active. |
| `d:bi-lg:none` | On :disabled. |
| `fc:bi-lg:none` | On :first-child. |
| `c:bi-lg:none` | On :checked. |
| `e:bi-lg:none` | On :empty. |
| `fw:bi-lg:none` | On :focus-within. |
| `i:bi-lg:none` | On :invalid. |
| `in:bi-lg:none` | On :indeterminate. |
| `lc:bi-lg:none` | On :last-child. |
| `nc:bi-lg:none` | On :nth-child. |
| `r:bi-lg:none` | On :required. |
| `ro:bi-lg:none` | On :read-only. |
| `v:bi-lg:none` | On :valid. |

### Pseudo Elements

Style a part of the element rather than the element itself, such as its placeholder or the selected text.

| Class | Applies |
|-------|---------|
| `a::bi-lg:none` | On ::after. |
| `b::bi-lg:none` | On ::before. |
| `p::bi-lg:none` | On ::placeholder. |
| `s::bi-lg:none` | On ::selection. |