CSS Text balancing with text-wrap:balance - Ahmad Shadeed. The browser will automatically calculate the number of words and divide them equally between two lines. With text balancing, the title content will be balanced and we won’t have a single word in its line.

3m read timeFrom ishadeed.com
Post cover image
Table of contents
Text balancing in CSSText balancing with max-width set on the elementUse cases & examplesText balancing won’t affect the element’s widthPerformance limitsFurther resources:

Sort: