word-break

Determines if the browser can break a single word into multiple lines when it's too long to fit. This is essential for preventing long URLs or unbroken strings of text from breaking your layout on small screens.

It is documented as part of the CSS Text specification.

/* Usage Example */
.sidebar-url {
  /* forces long links to break and wrap to the next line */
  word-break: break-all;
}

/* Syntax */
word-break: normal;
word-break: break-all;
word-break: keep-all;
word-break: break-word;
word-break: auto-phrase;

/* Global values */
word-break: inherit;
word-break: initial;
word-break: revert;
word-break: revert-layer;
word-break: unset;
Widely available Since 2015 96% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.

1+
15+
3+
12+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC