views:

226

answers:

1

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 ?

A: 

CSS overflow with a <div>...</div> positioned at the bottom?

Sean Kinsey
The problem with this is if it is a short title then we still get the ...
Jigs
You can easily run a short piece of javascript to see if the contents height is more then the set height. If so you display the .. div.
Sean Kinsey