The text-wrap shorthand sets text-wrap-mode + text-wrap-style together. Legacy values (wrap/nowrap) set the mode only; balance/pretty/stable set the style and imply mode wrap.h1 {
text-wrap: balance;
}.card-title {
text-wrap: pretty;
}wrapAllows line breaking (mode default).nowrapPrevents line breaking.balanceStyle: balanced line lengths.stableStyle: stable on dynamic edits.prettyStyle: optimized appearance (anti orphans/widows).autoThe UA chooses the appropriate wrapping strategy.avoid-orphansStyle: avoids orphans — a single word on the last line.CSS Text Module Level 4Editor's DraftW3CMDN
In the beginning God created the heaven and the earth.
Now the earth was unformed and void, and darkness was upon the face of the deep; and the spirit of God hovered over the face of the waters.
And God said: 'Let there be light.' And there was light.
Show all codeEdit CSS onlineThe plugin that remembers hundreds of CSS items for youEvery CSS property — in a live demonstrationThe bilingual CSS referencedefinitionexamplessyntaxmodulespecificationsourcesvisual demonstrationpreviousnext