# Scale Z

Set the depth scale for an element.

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

Chrome 104 · Edge 104 · Firefox 72 · Safari 14.1

| Class | Properties | Value |
|-------|------------|-------|
| `sz:0` | scale | `0` |
| `sz:5` | scale | `.05` |
| `sz:10` | scale | `.1` |
| `sz:15` | scale | `.15` |
| `sz:20` | scale | `.2` |
| `sz:25` | scale | `.25` |
| `sz:30` | scale | `.3` |
| `sz:35` | scale | `.35` |
| `sz:40` | scale | `.4` |
| `sz:45` | scale | `.45` |
| `sz:50` | scale | `.5` |
| `sz:55` | scale | `.55` |
| `sz:60` | scale | `.6` |
| `sz:65` | scale | `.65` |
| `sz:70` | scale | `.7` |
| `sz:75` | scale | `.75` |
| `sz:80` | scale | `.8` |
| `sz:85` | scale | `.85` |
| `sz:90` | scale | `.9` |
| `sz:95` | scale | `.95` |
| `sz:100` | scale | `1` |

## Variants

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

### Breakpoints

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

| Class | Applies |
|-------|---------|
| `@xs:sz:50` | From 32rem up. |
| `@sm:sz:50` | From 40rem up. |
| `@md:sz:50` | From 48rem up. |
| `@lg:sz:50` | From 64rem up. |
| `@xl:sz:50` | From 80rem up. |
| `@xxl:sz:50` | 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:sz:50` | Container from 32rem up. |
| `@c:sm:sz:50` | Container from 40rem up. |
| `@c:md:sz:50` | Container from 48rem up. |
| `@c:lg:sz:50` | Container from 64rem up. |
| `@c:xl:sz:50` | Container from 80rem up. |
| `@c:xxl:sz:50` | 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:sz:50` | On a touch screen. |
| `@prm:sz:50` | With reduced motion on. |
| `@st:sz:50` | 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:sz:50` | On :hover. |
| `f:sz:50` | On :focus. |
| `fv:sz:50` | On :focus-visible. |
| `a:sz:50` | On :active. |
| `d:sz:50` | On :disabled. |
| `fc:sz:50` | On :first-child. |
| `c:sz:50` | On :checked. |
| `e:sz:50` | On :empty. |
| `fw:sz:50` | On :focus-within. |
| `i:sz:50` | On :invalid. |
| `in:sz:50` | On :indeterminate. |
| `lc:sz:50` | On :last-child. |
| `nc:sz:50` | On :nth-child. |
| `r:sz:50` | On :required. |
| `ro:sz:50` | On :read-only. |
| `v:sz:50` | 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::sz:50` | On ::after. |
| `b::sz:50` | On ::before. |
| `p::sz:50` | On ::placeholder. |
| `s::sz:50` | On ::selection. |

### Negative

Put a minus after the colon to negate a value.

| Class | Applies |
|-------|---------|
| `sz:-5` | A minus after the colon. |