The front-end developers sometimes need to redesign the screen in order to truncate string with ellipsis in CSS technology. The best possible solution is the following:
.truncate-format {
width: 100px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
Top comments (1)
I think, it only the best possible solution in case single line, not for multiple lines :))
Something like this one:
"abc
xyz..."