Word-Wrap: Text to Wrap through CSS



I have another CSS question for you all. I have a div layer where a lot of text is going, but it will not wrap the text once it hits the side of the div layer. If I use word-wrap: break-word; it will wrap correctly in IE, but not in Mozilla. What code do I need to use to get my text to wrap? I have searched and found nothing to help on the web.



Try CSS: Word-Wrap Property

You can specify either normal or break-word value with the word-wrap property. Normal means the text will extend the boundaries of the box. Break-word means the text will wrap to next line.

.break-word {
  word-wrap: break-word;
}

Sometime Word-wrap property may not work. Try following:

.break-word {
  white-space: normal;
}

Meeds