Balanced text wrapping
type: TechArticle
description: Let the browser break headings and body copy intelligently with text-wrap: balance and pretty — no orphaned words, no manual line breaks, no layout shift.
language: en
is part of: Web Specification Studio
author: Web Specification Studio
publisher: Web Specification Studio
license: https://creativecommons.org/licenses/by/4.0/
date modified: 2026-06-25T00:00:00.000Z
citation: CSS Text Module Level 4 — the text-wrap shorthand
  type: CreativeWork
  publisher: W3C CSS Working Group
citation: MDN — text-wrap
  type: CreativeWork
  publisher: MDN
citation: CSS text-wrap: balance
  type: CreativeWork
  publisher: Chrome for Developers
citation: Better typography with text-wrap: pretty
  type: CreativeWork
  publisher: WebKit

Web Specification Studio
type: WebSite

Web Specification Studio
type: Organization

breadcrumb
type: BreadcrumbList
item list element: Home
  type: ListItem
  position: 1
  item: https://webspecification.com/
item list element: Spec
  type: ListItem
  position: 2
  item: https://webspecification.com/spec/
item list element: Foundations
  type: ListItem
  position: 3
  item: https://webspecification.com/spec/foundations/
item list element: Balanced text wrapping
  type: ListItem
  position: 4
  item: https://webspecification.com/spec/foundations/text-wrap/