I\'m using the below code for wrapping long text, entered by users in a text area for commenting:
function addNewlines(comments) { var result = \'\'; while (
Try one of these:
word-wrap:no-wrap;
word-wrap: break-word
It might solve your problem