Why justified text goes wrong
Justified text reaches both margins. A setting engine adjusts opportunities such as spaces between words, or other spacing depending on the script and method, so the line fits the measure. This example uses Latin word gaps.
Imagine a 70-character line with twelve words and eleven spaces, and a 35-character line with five words and four spaces. If both lines needed the same total extra width and each gap received an equal share, a gap on the short line would receive 11 ÷ 4 = 2.75 times the amount. Real lines can need different adjustments and have different gap counts.
When several consecutive lines have wide spaces in nearby positions, they connect into a pale channel running down the paragraph. These are rivers, and once you have seen one you will see them everywhere. They are distracting in a specific way: they compete with the horizontal reading motion by offering a vertical path.
Choose alignment after seeing the actual paragraph, at the widths and text settings readers will use.
For narrow Latin body text, start at the reading edge and leave the far edge ragged. If you try justification, compare gaps and line breaks with suitable hyphenation. WCAG 2.2 Level AAA Visual Presentation separately asks for a way to achieve un-justified blocks of text.
Hyphenation is the missing half
Hyphenation can give the engine an extra line-break opportunity. It can reduce the extra space needed on a line by fitting a part of a word before the break. Compare the setting with and without it, paying attention to both gaps and repeated hyphens.
The web example requests automatic hyphenation and identifies the language. Try both settings with representative words in your target browsers.
p { hyphens: auto; }<html lang="en-GB">Automatic hyphenation requires a known language and a suitable hyphenation resource in the browser. A correct lang value makes the language available. Check whether the browser actually supports automatic breaks for it and whether the line needs a break. W3C CSS Text hyphenation.
Ragged is usually right
Start alignment puts the even edge at the reading start and leaves the other edge ragged. Left-to-right Latin prose then has a ragged right edge. Right-to-left prose has a ragged left edge. Compare the real spacing and breaks after choosing alignment.
A good rag has a shape. What to look for:
- Watch for an unusually short line. Read the phrase across the break to see whether it still makes sense.
- Watch for an accidental shape. A repeated wedge or staircase can catch the eye.
- Watch repeated endings. A stack of identical words or hyphens may draw attention.
You adjust a rag by changing the measure slightly, by inserting a non-breaking space to force two words to stay together, or by rewriting. In long web text you cannot control it, which is fine: this is a fine-typography concern for headlines, pull quotes and print, not for flowing body text that reflows on every device.
Headlines are where line breaks matter most
A headline that breaks badly changes the sentence. Consider:
The committee rejected the plan to
close the libraryagainst
The committee rejected the plan
to close the libraryThe second breaks at a phrase boundary and reads in one pass. CSS now has a declaration for this:
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }balance aims for more even lines and can help a short headline. pretty lets the browser spend extra effort choosing better wraps in a block. Exact algorithms and line-count limits vary. Check the actual phrase breaks and the fallback on your target browsers. W3C CSS Text wrapping.
Widows and orphans
Two terms that get swapped constantly. The conventional definitions:
- An orphan is the first line of a paragraph left alone at the bottom of a column or page.
- A widow is the last line of a paragraph left alone at the top of the next one.
A single word alone on the last line of a paragraph is also commonly called a widow, or a runt. All three are worth avoiding because they look like a mistake in the production rather than a property of the text.
In CSS, orphans and widows take effect only in paged contexts (printing and multi-column layouts) and do nothing in ordinary continuous flow. In Scribus, LibreOffice Writer and any word processor, the equivalent setting lives in the paragraph controls and does work. This is a case where print tools are better equipped than the browser, and it is worth knowing which environment you are in before you promise anybody a fix.
Align prose to support the next line
A short invitation or title can suit centring. For a longer paragraph, compare a shared start edge, especially at phone widths and enlarged text. A consistent start gives the reader a predictable place to return to.
Check your understanding
A paragraph declares automatic hyphenation, but long words never break in one language. Which check addresses the feature directly?
Pick the one you would defend. Your answer stays private.
Your place and first choices stay on this browser. Classroom credit is recorded separately.
Stuck on something?Ask Meher, your AI tutor