How to prevent text from overflowing in CSS?

If you want the overflowing text in the div to automatically newline instead of being hidden or making a scrollbar, use the

word-wrap: break-word

property.

Leave a Comment