javascript - How to remove ellipsis if element isn't wide enough -


i have html element has css properties of text-overflow: ellipsis , overflow: hidden. these work great in truncating text when it's wider width of div it's in , displaying ellipsis. however, if div resized smaller point ellipsis shown (or when it's small can't show ellipsis , reverts 1 character of text), want remove ellipsis altogether , not display anything. possible?

i don't want have check width of text seems hackish. i'd prefer cleaner.


Comments

Popular posts from this blog

c# - How can I have the VS Debugger break in the correct location for exceptions thrown in Async methods in a Console App? -

php - Issues outputting data after prepared statement with loops -

javascript - How to pass a property by reference -