The word-wrap Property
Allow long words to be able to break and wrap onto the next line:
div {
word-wrap: break-word;
}
word-wrap: normal (default):
div.a {
word-wrap: normal;
}
This div contains a very long word: thisisaveryveryveryveryveryverylongword. The long word will break and wrap to the next line.
word-wrap: break-word:
div.b {
word-wrap: break-word;
}
This div contains a very long word: thisisaveryveryveryveryveryverylongword. The long word will break and wrap to the next line.