Prevent overflow

overflow-wrap

Break a long string of characters without spaces so that it doesn't overflow the element's boundaries.

Property values

Use one of these keywords:

anywhere Advance to a new line when the next word doesn't fit fully within the element's width
break-word Advance to a new line when the next word doesn't fit fully within the element's width AND break a long string of characters when necessary

Examples

overflow-wrap: break-word;
overflow-wrap
0

style > character > overflow-wrapPrevent overflow

🔗 🔎