Reputation: 133
How can I use CSS to wrap long words such as wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
Instead of them flowing out of a div
Upvotes: 3
Views: 895
Reputation: 4690
Try white-space: pre-line;, it should break long words / strings.
white-space: pre-line;
Upvotes: 1
Reputation: 72642
Add the following CSS rule:
word-wrap: break-word;
Upvotes: 6