javascript - How does Facebook implement it's "see more" feature on post text content. -


i want cut off post text content @ either 6 lines or number of word characters. fortunately, after using this jquery plugin, have managed cut off post text content @ number of word characters.

what remaining cut off post text content @ 6 lines. it's unfortunate this jquery plugin can't it. need anyone's on this. image below illustrates want implement.

facebook "see more" style

you can set div's height: 6em, restore height: auto when "read more" link clicked. example: http://jsfiddle.net/jv7dj/1/.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -