Reply to Detecting line wrap and adding "..." to overflowed words
Posted by Jason on 10/13/06 15:27
I have a div box with a border, and some padding left and right. It has
some text with different font sizes, and a few icons. I want to cut off
any overflow at the end of the line with "...", instead of the text
wrapping. What is the best way I can detect whether the line wrapped,
and how many characters to cut off at the end?