css add dots if text too long

CSS
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
Source

Also in CSS: