text-wrap: balance & pretty Playground

Mr. Harun’s banner under the text-wrap you pick: the browser breaks its lines at the real width, each line is measured with a Range, an orphan word is…

Why it matters

Lopsided headings and orphan words make a page look unfinished, and the text changes on every screen and in every translation, so it can't be fixed by hand. text-wrap fixes it with one line of CSS, and browsers that don't support it simply ignore it.

The key idea

balance is for headings, pretty is for paragraphs

Common mistakes

Try it in this playground