word-wrap: break-word:

This div contains a very long word: thisisaveryveryveryveryveryverylongword. The long word will break and wrap to the next line.