# Text Indent

Set the indentation of the first line of text.

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

Chrome 1 · Edge 12 · Firefox 1 · Safari 1

| Class | Properties | Value |
|-------|------------|-------|
| `ti:0` | text-indent | `0` |
| `ti:1` | text-indent | `1px` |
| `ti:2` | text-indent | `.25rem` |
| `ti:3` | text-indent | `.5rem` |
| `ti:4` | text-indent | `.75rem` |

## Variants

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

### Breakpoints

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

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

### Negative

Put a minus after the colon to negate a value.

| Class | Applies |
|-------|---------|
| `ti:-4` | A minus after the colon. |