# CSS Text balancing with text-wrap:balance

DevFeed: [CSS Text balancing with text-wrap:balance](<https://devfeed.tech/articles/css-text-balancing-with-text-wrap-balance-45308.md>)

Original publisher: [Read original article](<https://ishadeed.com/article/css-text-wrap-balance/>)

Author: Ahmad Shadeed

Published: 2023-04-09T00:00:00Z

Content type: tutorial

Language: en

Sources: [Ahmad Shadeed](<https://devfeed.tech/sources/ahmad-shadeed.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>), [browser](<https://devfeed.tech/topics/browser.md>), [Google Chrome](<https://devfeed.tech/topics/google-chrome.md>), [React](<https://devfeed.tech/topics/react.md>)

Tags: [balancing](<https://devfeed.tech/tags/balancing.md>), [browser](<https://devfeed.tech/tags/browser.md>), [chrome-canary](<https://devfeed.tech/tags/chrome-canary.md>), [css](<https://devfeed.tech/tags/css.md>), [design](<https://devfeed.tech/tags/design.md>), [react](<https://devfeed.tech/tags/react.md>), [react-component](<https://devfeed.tech/tags/react-component.md>), [text](<https://devfeed.tech/tags/text.md>), [ui](<https://devfeed.tech/tags/ui.md>), [website](<https://devfeed.tech/tags/website.md>), [wrap](<https://devfeed.tech/tags/wrap.md>)

## AI overview

This tutorial explains how CSS text balancing can make multi-line headlines and other UI text appear more visually consistent. It covers experimental support in Chrome Canary, the effect on text within containers, and examples including page titles, card titles, tooltips, modals, and FAQs.

## Source excerpt

Have you ever wished there is a native way in CSS to make two lines headlines consistent in the number of words per line? As a designer, I spot that a lot when dealing with varying content lengths while designing a website or a UI. Such a thing can make the UI you're working on feels unbalanced, or missing something. Here is what I mean: The highlighted word is a single word that lives on its line. From a visual perspective, this looks odd.