css - Cut off text before read more -
i have texts of time fit in div, doesn't fit. there no way determine how many characters/words/paragraphs fit in div, can't cut off way.
the div had fixed height , width, can that? or have suggestion how in div, correct way?
if text isnt going fit, use css elipses make bit cleaner. perhaps place text in hidden element , measure height see if need include (more) link.
see http://mattsnider.com/css/css-string-truncation-with-ellipsis/
Comments
Post a Comment