logoalt Hacker News

michaelcampbellyesterday at 5:38 PM4 repliesview on HN

Total tangent, but what vagary of HTML (or the Brave Browser, which I'm using here) causes words to be split in very odd places? The "inspect" devtools certainly didn't show anything unusual to me. (Edit: Chrome, MS Edge, and Firefox do the same thing. I also notice they're all links; wonder if that has something to do with it.)

https://i.imgur.com/HGa0i3m.png


Replies

werdnapkyesterday at 5:51 PM

CSS on the <a> tags:

word-break: break-all;

show 1 reply
knallfroschyesterday at 7:03 PM

It's an error in the site's CSS. CSS has way better methods, like splitting words correctly depending on the language and hyphenating it.

Although I can never remember the correct incantation, should be easy for LLMs.

fancy_pantseryesterday at 5:53 PM

CSS word-break property

rosstexyesterday at 7:29 PM

Ask Claude?