css remove text-overflow ellipsis code example
Example 1: css add dots if text too long
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
Example 2: truncate text css
.element{
text-overflow: ellipsis;
/* Required for text-overflow to do anything */
white-space: nowrap;
overflow: hidden;
}