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)

SurveyJS custom survey software

JavaScript Form Builder UI Component

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

Learn more

👋 Kindness is contagious

Explore this insightful write-up embraced by the inclusive DEV Community. Tech enthusiasts of all skill levels can contribute insights and expand our shared knowledge.

Spreading a simple "thank you" uplifts creators—let them know your thoughts in the discussion below!

At DEV, collaborative learning fuels growth and forges stronger connections. If this piece resonated with you, a brief note of thanks goes a long way.

Okay