# Why justified text creates gaps in phone-sized reports

Canonical: https://githtml.com/guides/avoid-justified-text-phone-reports
Published: 2026-11-23
Publisher: WaveTech LLC / gitHtml

Prefer start-aligned prose when justification produces uneven word spacing in narrow columns. Justification stretches spacing to fill a line, which can create distracting gaps around long technical words. Fix the text alignment and reading measure before shrinking the font, and retain ordinary wrapping rather than inserting manual line breaks.

## Choose the right representation

A short line containing a long term leaves few spaces for the browser to distribute. With justification, those spaces can become visually dominant. Technical reports are especially vulnerable because names, identifiers, and parenthetical qualifications vary widely in length.

## Apply the pattern deliberately

Use text-align: start for narrative paragraphs so alignment follows the passage's writing direction. Centering a whole paragraph does not solve the problem; it changes where each line begins. If justification is retained for a specialized layout, review hyphenation and language metadata as separate decisions.

1. Compare the same paragraph with start alignment and justification at phone width.
2. Remove manually inserted line breaks that exist only to improve one preview size.
3. Keep alignment rules scoped so numeric columns and short headings retain their intended treatment.

````css
.report p { text-align: start; }
````

## Trace the gaps to the rule that creates them

Inspect the affected paragraph's computed text alignment before editing its words. A generator may apply justification to every paragraph through a theme rule, even when the author never requested it. Override that rule in the reading stylesheet at the appropriate scope. Avoid adding spaces, nonbreaking spaces, or forced line endings to repair a single screenshot; those edits change the content and tend to fail at the next viewport width.

Use a realistic problem paragraph containing a long repository name, a parenthetical qualification, and ordinary prose. Compare start alignment against justification at the same font size and container width. If both versions overflow, investigate the long token or the container rather than blaming alignment. If only the justified version creates conspicuous gaps, you have isolated a typography choice rather than a missing asset or an HTML parsing error.

Keep exceptions deliberate. A short centered title, a right-aligned numeric column, and a start-aligned narrative can coexist without contradiction because they support different reading tasks. Do not replace every alignment rule globally just to fix one paragraph. For a publication that deliberately uses justification, review language-aware hyphenation and the available measure with representative text. Record the tradeoff and retain a readable narrow-screen layout; a print-style appearance is not automatically a good mobile reading experience.

## Check the finished reading experience

Test a paragraph with several long terms at the narrowest useful width. The result should not contain conspicuous white channels that compete with the words.

## Sources and further reading

- [MDN: text-align](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/text-align)

## Related guides

- [Move a reading task between iPhone and iPad without losing context](https://githtml.com/guides/move-reading-between-iphone-ipad-without-losing-context)
- [Read technical HTML comfortably on iPad in portrait and landscape](https://githtml.com/guides/read-technical-html-ipad-portrait-landscape)
- [Build a small GitHub document reading queue with favorites and recents](https://githtml.com/guides/favorites-recents-document-reading-queue)
- [Find answers in long HTML reports with better search queries](https://githtml.com/guides/search-long-html-report-with-better-queries)

Editorial approach: https://githtml.com/guides/about
