DEV Community

Cover image for CSS text-wrap: balance vs text-wrap: pretty
SnippFlow
SnippFlow

Posted on

CSS text-wrap: balance vs text-wrap: pretty

In CSS, the text-wrap: balance and text-wrap: pretty methods are used to optimize how text is wrapped within a block.

See the following Codepen for a demo:

Full article: CSS text-wrap: balance vs text-wrap: pretty
CSS Snippets

Top comments (0)

AWS Q Developer image

Build your favorite retro game with Amazon Q Developer CLI in the Challenge & win a T-shirt!

Feeling nostalgic? Build Games Challenge is your chance to recreate your favorite retro arcade style game using Amazon Q Developer’s agentic coding experience in the command line interface, Q Developer CLI.

Participate Now

👋 Kindness is contagious

Take a moment to explore this thoughtful article, beloved by the supportive DEV Community. Coders of every background are invited to share and elevate our collective know-how.

A heartfelt "thank you" can brighten someone's day—leave your appreciation below!

On DEV, sharing knowledge smooths our journey and tightens our community bonds. Enjoyed this? A quick thank you to the author is hugely appreciated.

Okay