Hide Long or Overflow Text in HTML

.text-container {
  width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  padding: 10px;
  border: 1px solid #ccc;
}

Leave a Reply

Your email address will not be published. Required fields are marked *