Although the answer is accepted, I would like to add to the accepted answer besides
table td {word-wrap:break-word;}
you must make sure that the space property is not set to nowrap or pre .
This can prevent word wrap in td content even if you use word wrap: break-word
If some other CSS styles set the space property, you can add
table td { word-wrap:break-word; white-space: normal; }
This will ensure the correct word wrap in your td content.
Hope this helps someone!
source share