Justin Lonas
Justin Lonas

Reputation: 189

Jquery Height-Based Truncate Solution?

I have a project where I need to layout a newspaper like layout with columns but the columns must be a specific height (can at least extend a very little if need be) but holds dynamic content. I need to cut the text, after a sentence ends (a period) even if that means it extends slightly past the limit. I have tried to find back-end solutions to this (as well as attempted my own), css solutions and tricks (overflow:hidden looked horrible) and other tricks here and there but cannot seem to come up with a solution.

Was wondering if there were any height based truncate libraries for JQuery that anyone knew about that preserved until the end of a sentence.

Any help is appreciated :)

Upvotes: 1

Views: 1915

Answers (1)

ptriek
ptriek

Reputation: 9286

This might be what you're looking for:

http://tpgblog.com/2009/12/21/threedots-the-jquery-ellipsis-plugin/

Upvotes: 2

Related Questions