overflow-wrap vs word-break: How to Break Long URLs Without Breaking Your Layout
A long URL with no spaces can make a page wider than a phone screen. Here is how to find the culprit, the difference between overflow-wrap and word-break, the flexbox trap, and how to break URLs neatly.

overflow-wrap is a CSS property that lets the browser break a long word or URL onto the next line so the text doesn't spill out of its box. Without it, a string with no spaces, like developers., is treated as one unbreakable word, and on a phone it can make the whole page wider than the screen. As of October 2026, overflow-wrap is marked Baseline widely available on MDN, so it's safe to use in every modern browser.
Here's what happened: