Cut off text before read more
Posted
by koko
on Stack Overflow
See other posts from Stack Overflow
or by koko
Published on 2010-04-27T21:17:28Z
Indexed on
2010/04/27
21:23 UTC
Read the original article
Hit count: 384
I have texts that most of the time fit in a div, but sometimes it doesn't fit. There is no way to determine how many characters/words/paragraphs fit in the div, so I can't cut it off that way.
The div had a fixed height and width, so can we do something with that? Or do you have any suggestion how to get everything in the div, the correct way?
© Stack Overflow or respective owner