← All notes

CSS text-wrap: balanced headlines and prettier paragraph breaks

Answer: The balance value for text wrap can request a balanced wrapping solution from the browser.

The balance value

The balance value for text wrap is part of CSS Text Level 4.

Designers otherwise have few tools to change the way lines are balanced.

The browser already knows font size, language, and allocated area.

You can request the browser to figure out a balanced wrapping solution.

The pretty value

From Chrome 117 you can use text wrap pretty, also from CSS Text Level 4.

pretty is different from the CSS orphans property, which is relevant when using a multi-column layout.

Typographic widows and orphans are single words left alone at the start or end of a block.

pretty only handles orphans, not widows.

It can also adjust hyphenation and justification when consecutive hyphenated lines would land at the end of a paragraph.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Google LLC, CSS text-wrap: balance; Google LLC, CSS text-wrap: pretty. CC-BY-4.0 (https://developers.google.com/site-policies). Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License. Copyright Google LLC. Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Google LLC, CSS text-wrap: balance; Google LLC, CSS text-wrap: pretty. CC-BY-4.0 (https://developers.google.com/site-policies). Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License. Copyright Google LLC.

Cite this

Permanent ID: iil:note:hjye5c2h

iinventedlight. 2026. "CSS text-wrap: balanced headlines and prettier paragraph breaks." iinventedlight Library, iil:note:hjye5c2h, version of 2026-11-24. https://iinventedlight.com/library/notes/css-text-wrap/. License: CC-BY-4.0.

@misc{iil_note_hjye5c2h,
  author = {{iinventedlight}},
  title = {{CSS text-wrap: balanced headlines and prettier paragraph breaks}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-24},
  url = {https://iinventedlight.com/library/notes/css-text-wrap/},
  note = {Permanent ID iil:note:hjye5c2h. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

Extra files beside this note

These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.

All artifact files (JSON index)

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/css-text-wrap.md.