Jquery add elipse (...) and truncate text based on height not width.

Posted by Jigs on Stack Overflow See other posts from Stack Overflow or by Jigs
Published on 2010-05-26T10:02:31Z Indexed on 2010/05/26 10:11 UTC
Read the original article Hit count: 438

Filed under:
|
|

I have found many ways to measure width and to truncate text using jquery, but I can't find one based on height.

I am limited to two lines of text or it will knock my design out of canter.

So does anyone know a method of limiting a paragraph to two lines high, tuncating it and adding an elipse ?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery