text overflow ellipsis css

CSS
div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}overflow: scroll;
white-space: nowrap;.element{

  text-overflow: ellipsis;

  /* Required for text-overflow to do anything */
  white-space: nowrap;
  overflow: hidden;
}

Source

Also in CSS: