Chris Coyier on Twitter: "I was unaware of `text-wrap: pretty;...

!https://twitter.com/chriscoyier/status/1681407724993798144

Copy this post
Chris Coyier (<a href=@chriscoyier) on X — I was unaware of `text-wrap: pretty;`

I knew about the (new/cool) text-wrap: balance; — but sometimes that's a bit… too much. I feel like it's nice on headers but not smaller type.

Here's what I mean." loading=“lazy”>

Chris Coyier (@chriscoyier) on X
I was unaware of text-wrap: pretty;

I knew about the (new/cool) text-wrap: balance; — but sometimes that's a bit… too much. I feel like it's nice on headers but not smaller type.

Here's w…

X (formerly Twitter) · twitter.com

Next time I’m working with large headers on small screens I need to try this. I always truggle to get them to look good for most text and overflow ridiculously long words correctly or at all.

text-wrap: pretty;
text-wrap: balance