count how many characters fit in a DIV
问题 I have a DIV on my page (which is a responsive design), which contains just text of a set pt size. The text fits fine and the page looks grand. However, when the browser is reduced in size, the DIV shrinks, and some of my text busts out of the DIV. Is there some kind of JavaScript (jQuery) formula for working out how many characters can fit in a DIV? The idea I have is every time the browser changes size, the text is truncated, and ellipses are added at the end. I just don't know where to