Balanced text wrapping is coming to CSS

1 · Amit Merchant · March 4, 2023, 6:38 a.m.
The CSS Working Group has recently published a new draft of the CSS Text Module Level 4 specification that introduces a new property called text-wrap that allows you to control the wrapping of text in a more granular way. Essentially, the text-wrap property will let browsers wrap text in a way that looks balanced for better readability and to prevent typographic widows. As you can expect, this can be pretty useful for making headlines look better. Here’s how it would look like courtesy of the tw...