Skip to content Skip to sidebar Skip to footer

How To Prevent Long Text From Flowing Out Of A Container

How can I use CSS to wrap long words such as wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww Instead of them flowing o

Solution 1:

Add the following CSS rule:

word-wrap: break-word;

Solution 2:

Try white-space: pre-line;, it should break long words / strings.


Post a Comment for "How To Prevent Long Text From Flowing Out Of A Container"