Does anybody know of a way to use {text-overflow: ellipsis;} on a piece of text that's wrapping to a second line?
Adding {whitespace: nowrap;} makes text-overflow work, but I need the text to wrap so I really can't use that.
Does anybody know of a way to use {text-overflow: ellipsis;} on a piece of text that's wrapping to a second line?
Adding {whitespace: nowrap;} makes text-overflow work, but I need the text to wrap so I really can't use that.
The {text-overflow: ellipsis;} property only works in IE. I would suggest instead to put your text inside of something like a div and set the maximum height to whatever you want and put a text overflow:hidden into the CSS of the div. This will cause the text to disappear once it leaves the div. I know it doesn't create the {...} but that only works in IE anyways.
You could just specify the direction in which overflow will be applied on the parent element:
overflow-x:
overflow-y:
Just apply it vertically and leave it out horizontally.