# Balanced Headline

> Evens out the line lengths of headings and avoids lonely last words in paragraphs.

- Category: [CSS Text Effects](https://copy-css.com/category/text)
- Tags: text-wrap, balance, pretty, typography, orphans
- Live preview: https://copy-css.com/snippets/balanced-headline
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="balanced">
  <h2>Ship faster with tiny, reusable CSS building blocks</h2>
  <p>Short paragraphs look better without a single word stranded on the last line.</p>
</div>
```

## CSS

```css
/* Headings: balance line lengths */
.balanced h1,
.balanced h2,
.balanced h3 {
  text-wrap: balance;
}

/* Body text: avoid a single word on the last line */
.balanced p {
  text-wrap: pretty;
}
```

## Notes

- This CSS Balanced Headline is 11 lines of pure CSS (0.2 KB) with no JavaScript and no dependencies. It uses balanced text wrapping.
- balanced text wrapping: Chrome 114+, Safari 17.5+, Firefox 121+. Other browsers wrap normally.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
