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

php - Hide output during test execution -

javascript - Migrate custom AngularJS filter from 1.2.28 to 1.4.x -

Update Magento products with multiple images -