CSS Property:
overflow-wrap:

Result:
This div contains a very long word: thisisaveryveryveryveryveryverylongword.
CSS Code:
#myDIV {
  width:150px;
  overflow-wrap:break-word;
}
Click the property values above to see the result
W3Schools.com - Play it