# text-wrap: pretty

Status: Chrome 117, Safari 26.0 (improved algorithm); Firefox not yet (caniuse through 158).  
Source: https://caniuse.com/mdn-css_properties_text-wrap_pretty and https://webkit.org/blog/17333/webkit-features-in-safari-26-0/  
Page: https://designforai.dev/css/text-wrap-2

Better paragraph wrapping: avoids orphan words, improves hyphenation and evens out rag on the whole paragraph (Safari evaluates the whole paragraph; Chrome the last lines). Body-text counterpart to `balance`.

## HTML

```html
<p class="fx-041">Pretty wrapping evaluates line breaks across the paragraph to avoid a single stranded word on the final line and to keep the right edge from looking ragged, which is what typographers do by hand.</p>
```

## CSS

```css
.fx-041 {
  text-wrap: pretty;
  max-width: 42ch;
  font-family: Georgia,serif;
  line-height: 1.5;
  hyphens: auto
}
```

Fallback: Firefox wraps normally; harmless.

## Prompt

Set `text-wrap: pretty` on body copy, list items and descriptions (any multi-line prose), and `text-wrap: balance` on headings. It costs nothing where unsupported, so apply it globally to `p, li, dd, blockquote`.
