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
Sadly, with CSS alone I don't think you can.
http://jsfiddle.net/TVVHs/
text-overflow: ellipsis;
only works with white-space: nowrap;
which prevents multiple lines.
There probably is a crazy javascript solution that keeps chopping off words until the element height is acceptable, but that will be slow and pretty damn hacky nasty.