I have some divs which contain various amounts of text inside a container which has a fixed width. To stop the text from overflowing outside the container, I am using the following CSS:
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
Is there any way I can calculate the width of the text as it would be if it was not cut off? Using the following code only provides me with the width after it has been trimmed.
$('.boxText').width();
Just to clarify - I am talking about the width. Not the character length.
ptag helps!