Restrict in one line in css with dots code example
Example 1: css add dots if text too long
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
Example 2: overflow dottet
.cut-text {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}