2 ms·
I keep getting distracted by the bad line wrapping in links, where it just breaks mid-word with no hyphen or anything. The offending CSS rule is main .about
by chrismorgan 6y ago
I keep getting distracted by the bad line wrapping in links, where it just breaks mid-word with no hyphen or anything.
The offending CSS rule is
main .about p > a,
main .post p > a {
word-break: break-all;
}
This should just be removed, it’s unambiguously wrong. I’d have said it should be using `overflow-wrap: break-word` instead, but the containing paragraph having `word-break: break-word` makes that unnecessary.
The word-break and overflow-wrap properties are fairly nuanced, and I honestly suspect that most times I’ve seen them used they’ve been used incorrectly.
Another change that should be made to the page’s styles is reverting to left-alignment inside tables, and probably turning off hyphenation there as well. Left justification with hyphenation works well enough on regular body text (it’s a stylistic choice, shall we say), but inside tables with narrow columns it’s destructive. I’d add this:
main .about table,
main .post table {
text-align: left;
hyphens: none;
}