Live data from Hacker News

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

news.ycombinator.com

1–10 of 13 posts

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

#4
My guess is that it'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).

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't be commonly used even after it becomes widely supported.

The specs for the justify property illustrate some of the challenges in implementation [2].

[1] https://caniuse.com/css-text-justify

[2] https://drafts.csswg.org/css-text-3/#text-justify-property

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

#5
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.

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.

[1]: https://en.wikipedia.org/wiki/Typographic_alignment#Problems...

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

#6
post #2

Most people really do prefer justified text. Lots of webdevs probably get excited when they realize browsers have built-in justification too.

> Most people really do prefer justified text.

“[Citation needed]”. Justified text (more often than not) looks awful[1] and breaks reading rhythm (even if not consciously perceived). That doesn’t prove your claim is incorrect; I’m pointing it out to explain why I find it dubious. What’s your source to say that most people prefer it?

[1]: https://news.ycombinator.com/item?id=25338737

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

#7

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”.

Even the best typesetting systems don't do it perfectly, and require some hand correction. On the web, where you're relying on the browser, and can't be certain of the display, you're better off not doing it.

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

#8
post #4

My guess is that it'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). 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't be commonly used even after it become…

No, your first reference is not about `text-align: justify`, which has had good support even since ie6 days. It’s about the `text-justify` property which gives more control when `text-align: justify` is applied.

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

#9
post #2

Most people really do prefer justified text. Lots of webdevs probably get excited when they realize browsers have built-in justification too.

Most people don't really know what's good for them...

Justification falls apart on mobile web where too few words can fit on a line and then you get big gaps between words.

On longer lines, a ragged right edge makes a good visual guide to keep the eye on the right line while reading a wide justified paragraph is hard to keep track of while reading.

https://medium.com/@meetchopz/10-bad-typography-habits-that-...

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

#10
post #2

Most people really do prefer justified text. Lots of webdevs probably get excited when they realize browsers have built-in justification too.

Most people don't really know what's good for them... Justification falls apart on mobile web where too few words can fit on a line and then you get big gaps between words. On longer lines, a ragged right edge makes a good visual guide to keep the eye on the right line while reading a wide justified paragraph is hard to keep track of while reading. https://medium.com/@meetchopz/10-bad-typography-habits-that-...

Interesting, I've never thought about it this way — thanks for pointing this out.
Post reply on HN