TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Why do most websites not justify their text?

9 pointsby jgoertlerover 4 years ago
I‘m often wondering why relatively few websites justify their text to fill out the complete screen.<p>Is this a matter of preference, or are there reasons for this? Is non-justified text more accessible? Or maybe because of smaller screens?

5 comments

latexrover 4 years ago
It’s not the default, which may play a big part. In addition, justification is an awful way to align text[1], making the composition uglier and harder to read, even if you don’t consciously notice it.<p>There are ways to work around those issues (all of them hacks: deforming characters and spaces in between), but even most professional design software doesn’t support the full range of features. Last I checked, Adobe Illustrator didn’t support that kind of granularity (though Adobe Indesign did) and neither did web browsers.<p>[1]: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Typographic_alignment#Problems_with_justification" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Typographic_alignment#Problems...</a>
rococodeover 4 years ago
My guess is that it&#x27;s simply a tech challenge. Justifying text seems non-trivial, especially if hyphenation is used (which I believe is typically the case in print, otherwise you get huge spaces).<p>According to caniuse `text-align: justify` is still not widely supported [1]. At this point, with how long people have had to get used to non-justified text online, it probably wouldn&#x27;t be commonly used even after it becomes widely supported.<p>The specs for the justify property illustrate some of the challenges in implementation [2].<p>[1] <a href="https:&#x2F;&#x2F;caniuse.com&#x2F;css-text-justify" rel="nofollow">https:&#x2F;&#x2F;caniuse.com&#x2F;css-text-justify</a><p>[2] <a href="https:&#x2F;&#x2F;drafts.csswg.org&#x2F;css-text-3&#x2F;#text-justify-property" rel="nofollow">https:&#x2F;&#x2F;drafts.csswg.org&#x2F;css-text-3&#x2F;#text-justify-property</a>
评论 #25340522 未加载
bright_lightover 4 years ago
My understanding is that justified text is harder to read as in order to create the justification, uneven spaces are generated between the words which disrupts the flow of your eye.<p>Additionally, just like it&#x27;s harder for the eye to make out a word in all caps due to greater regularity in the image, it&#x27;s also likely harder to distinguish differences in a paragraph if it&#x27;s all a &#x27;block&#x27; to the reader.<p>I&#x27;d imagine some people rely more heavily on the shapes of words rather than the letters or spelling itself. And then this heuristic might also carry through into the shape of a paragraph.
leephillipsover 4 years ago
It’s because the primitive line-breaking algorithm used by browers, combined with the lack of hypenation in most cases, leads to a poor result, especially in narrow columns. Look up “greedy line breaking”.
评论 #25339566 未加载
swileyover 4 years ago
Most people really do prefer justified text. Lots of webdevs probably get excited when they realize browsers have built-in justification too.
评论 #25338831 未加载
评论 #25343720 未加载
评论 #25342250 未加载