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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay