property
word-break — CSS reference
Changes boundaries that permit soft breaks. Initial normal and inherited. Break-all splits words aggressively, keep-all suppresses certain CJK breaks. Legacy break-word differs from overflow-wrap: break-word.
Formal Syntax & Structure
css syntaxcss
normal | break-all | keep-all | break-word | auto-phrase (selected)Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS text lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}
#a{word-break:break-all}</style><body><p id="a">Design readable interfaces with CSS.</p><p lang="fa" dir="rtl">متن فارسی برای آزمایش چیدمان</p></body></html>