I have a <p> tag with a specific width and height.
<p>
I want to use text-overflow:ellipsis to get ... if the text in the tag is too long.
text-overflow:ellipsis
...
Is this possible to solve with css on multiline text?
Googling doesn't reveal anything even remotely promising, so I'm going to say that it's not possible.
I did find text-overflow: -o-ellipsis-lastline, but it only works in Opera: http://people.opera.com/dstorey/text/text-overflow.html (mirror: http://jsbin.com/exugux/)
text-overflow: -o-ellipsis-lastline
There's also a similar WebKit-only solution: http://dropshado.ws/post/1015351370/webkit-line-clamp
1.4m articles
1.4m replys
5 comments
57.0k users