I tried using :
- text-overflow ellipsis feature in CSS3 (but doesn't support multi-line)
- several jquery plugins like dotdotdot (http://dotdotdot.frebsite.nl/)
- jquery autoellipsis (http://pvdspek.github.com/jquery.autoellipsis/).
All of these tools work quite well but if content has images the calculated height for truncation with dotdotdot or jquery.autoellipsis is wrong.
I was just wondering if someone has a great idea for dealing with this (maybe some server-side processing on ?), Thanks by advance :-).
text-overflow: -o-ellipsis-lastline
, but it only works in Opera: jsfiddle.net/zGvHW/6 For Webkit browsers you can use-webkit-line-clamp
, that cuts the text when it reaches certain number of lines. I don't know about native Gecko or IE methods. – Fathomless