Been seeing way too many headers breaking mid-word on mobile lately. It's honestly painful to look at when you have a nice serif font and the line breaks right after a single character. It totally destroys the visual weight of the headline. I hate it when a huge chunk of whitespace just sits there because the second line only has two letters. If you're dealing with short headings or titles that shouldn't look like a ragged mess, just use text-wrap: balance. It tells the engine to try and distribute the words more evenly across lines. It's not for long paragraphs though, because it'll kill your performance if the browser has to recalculate every single line break in a huge block of text. Just stick to using it on h1 or h2 elements where you want that
pretty typographic balance without the heavy lifting.
h1 {text-wrap: balance;}NEVER USE THIS ON LONG BODY TEXTI saw a dev trying to use this on an entire article body yesterday and the layout was stuttering like crazy while scrolling. It's great for headlines, but keep it contained.