Forum for discussing general topics related to Couch.
4 posts Page 1 of 1
hi kkba
im back with another qn. please bear with me.

for the tag
Code: Select all
<cms:excerptHTML count='25'> 


the count rever to the letter right? is it possible to count by lines.

my problem is described in the picture


thanks alot.

Attachments

Hi Billy :)

is it possible to count by lines.
Sorry, don't think that would be possible.
You'll have to calculate the approximate number of characters shown in a line and display accordingly.
I've found that applying a min-height to the paragraph works best. Calculate the height of 4 lines of text and use that as the value.
I suggest to use CSS excerpt for this case, and for adaptive websites, too. Example solution is here: http://www.mobify.com/blog/multiline-el ... -pure-css/
4 posts Page 1 of 1