Join Nostr
2024-12-12 10:07:57 UTC

gerotakke on Nostr: CSS question: How do y'all do hyphenation these days? Probably mostly relevant to the ...

CSS question: How do y'all do hyphenation these days? Probably mostly relevant to the German folks ;-)
With hyphens:auto, words still break at terrible points in my browsers and I can't find any ways to make it more restrained.
I think my solution would be to use overflow-wrap:break-word in CSS and then rewrite with JS to remove that and wrap long words with more than X characters in hyphens:auto spans. That has a very 2010 feel to it though and I wonder if there is a better CSS-only solution.