# Text Wrap

Set how text wraps within an element.

**Newly available.** This feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

Chrome 130 · Edge 130 · Firefox 124 · Safari 17.5

| Class | Properties | Value |
|-------|------------|-------|
| `tw:b` | text-wrap | `balance` |
| `tw:n` | text-wrap | `nowrap` |
| `tw:p` | text-wrap | `pretty` |
| `tw:w` | text-wrap | `wrap` |

### Media Queries

Prefix a class with a breakpoint to apply it from that width up.

| Class | Properties | Value |
|-------|------------|-------|
| `tw:b` | text-wrap | `balance` |
| `tw:n` | text-wrap | `nowrap` |
| `tw:p` | text-wrap | `pretty` |
| `tw:w` | text-wrap | `wrap` |

### Pseudo Classes

Prefix a class with a state to apply it only while that state matches.

| Class | Properties | Value |
|-------|------------|-------|
| `tw:b` | text-wrap | `balance` |
| `tw:n` | text-wrap | `nowrap` |
| `tw:p` | text-wrap | `pretty` |
| `tw:w` | text-wrap | `wrap` |