The word-wrap property is a legacy alias for overflow-wrap. Controls whether the browser may break inside a long word that would otherwise cause overflow. The modern standard is overflow-wrap..article {
word-wrap: break-word;
}.url-cell {
overflow-wrap: anywhere;
}normalThe default value. Breaks only at normal break points (spaces, hyphens).break-wordAllows breaking anywhere within a long word to prevent overflow (when no other space is available).anywhereAllows breaking anywhere, including inside a word — also counted in min-content calculation.CSS Text Module Level 4Editor's DraftW3C
In the beginning God created the heavens and the earth.
this_is_a_very_very_long_very_very_very_long_very_long_word.
Now the earth was formless and empty, darkness was over the surface of the deep, and the Spirit of God was hovering over the waters.
And God said, “Let there be light,” and there was light.
God saw that the light was good, and he separated the light from the darkness.
God called the light “day,” and the darkness he called “night.” And there was evening, and there was morning—the first day.
And God said, “Let there be a vault between the waters to separate water from water.”
So God made the vault and separated the water under the vault from the water above it. And it was so.
God called the vault “sky.” And there was evening, and there was morning—the second day.
Show all codeEdit CSS onlineThe plugin that remembers hundreds of CSS items for youEvery CSS property — in a live demonstrationThe bilingual CSS referencedefinitionexamplessyntaxmodulespecificationsourcesvisual demonstrationpreviousnext