# Grid Row

Set the size & position of items across grid rows.

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

Chrome 57 · Edge 16 · Firefox 52 · Safari 10.1

### Grid Row

| Class | Properties | Value |
|-------|------------|-------|
| `gr-s:1` | grid-row | `span 1 / span 1` |
| `gr-s:2` | grid-row | `span 2 / span 2` |
| `gr-s:3` | grid-row | `span 3 / span 3` |
| `gr-s:4` | grid-row | `span 4 / span 4` |
| `gr-s:5` | grid-row | `span 5 / span 5` |
| `gr-s:6` | grid-row | `span 6 / span 6` |
| `gr-s:7` | grid-row | `span 7 / span 7` |
| `gr-s:8` | grid-row | `span 8 / span 8` |
| `gr-s:9` | grid-row | `span 9 / span 9` |
| `gr-s:10` | grid-row | `span 10 / span 10` |
| `gr-s:11` | grid-row | `span 11 / span 11` |
| `gr-s:12` | grid-row | `span 12 / span 12` |
| `gr-s:13` | grid-row | `span 13 / span 13` |
| `gr-s:14` | grid-row | `span 14 / span 14` |
| `gr-s:15` | grid-row | `span 15 / span 15` |
| `gr-s:16` | grid-row | `span 16 / span 16` |

### Grid Row End

| Class | Properties | Value |
|-------|------------|-------|
| `gre:1` | grid-row-end | `1` |
| `gre:2` | grid-row-end | `2` |
| `gre:3` | grid-row-end | `3` |
| `gre:4` | grid-row-end | `4` |
| `gre:5` | grid-row-end | `5` |
| `gre:6` | grid-row-end | `6` |
| `gre:7` | grid-row-end | `7` |
| `gre:8` | grid-row-end | `8` |
| `gre:9` | grid-row-end | `9` |
| `gre:10` | grid-row-end | `10` |
| `gre:11` | grid-row-end | `11` |
| `gre:12` | grid-row-end | `12` |
| `gre:13` | grid-row-end | `13` |
| `gre:14` | grid-row-end | `14` |
| `gre:15` | grid-row-end | `15` |
| `gre:16` | grid-row-end | `16` |

### Grid Row Start

| Class | Properties | Value |
|-------|------------|-------|
| `grs:1` | grid-row-start | `1` |
| `grs:2` | grid-row-start | `2` |
| `grs:3` | grid-row-start | `3` |
| `grs:4` | grid-row-start | `4` |
| `grs:5` | grid-row-start | `5` |
| `grs:6` | grid-row-start | `6` |
| `grs:7` | grid-row-start | `7` |
| `grs:8` | grid-row-start | `8` |
| `grs:9` | grid-row-start | `9` |
| `grs:10` | grid-row-start | `10` |
| `grs:11` | grid-row-start | `11` |
| `grs:12` | grid-row-start | `12` |
| `grs:13` | grid-row-start | `13` |
| `grs:14` | grid-row-start | `14` |
| `grs:15` | grid-row-start | `15` |
| `grs:16` | grid-row-start | `16` |

## Variants

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

### Breakpoints

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

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