javascript - How to hide overflow characters of a div when resizing -
this question has answer here:
- overflow:hidden dots @ end 5 answers
i have few div elements, want hide overflow characters when div resizing this
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
Post a Comment