I\'m trying to create a word-wrap in JavaScript using CSS, and the condition is:
If DIV contains one very long word, such as \"asdasfljashglajksgkjasghk
For this you can use text-overflow: ellipsis; property. Write like this
text-overflow: ellipsis;
white-space: nowrap; text-overflow: ellipsis;