user1100671 user1100671 - 1 year ago 76
CSS Question

Automatic line-break doesn't work?

I declared

but somehow my lines didn't get wrapped with an automatic line-break.

enter image description here

I found the cause. It's because there is no space between words:

teest teest teest teest teest teest teest teest teest teest teest teest teest teest teest teest teest teest teest teest teest teest teest teest teest teest teest teest teest teest teest teest teest teest teest teest teest teest 

Answer Source

The element where text is should have css declaration:

div {
    display: block;
    width: 200px; /*based on how much width this div should have*/

and if it doesn't work try doing:

div { word-wrap: break-word } 
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download