javascript - How to hide overflow characters of a div when resizing -


this question has answer here:

i have few div elements, want hide overflow characters when div resizing this

enter image description here enter image description here how every time resize page.

can css?

just add following css div contains text:

div {   white-space: nowrap;   overflow: hidden;   text-overflow: ellipsis; } 

this add 3 dots @ end of line whenever text longer div.

note: works 1 line text.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -