Truncate String with Ellipsis

0
0

All the following are required, so the text must be in a single straight line that overflows a box where that overflow is hidden.

.truncate {
  width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

A bunch of more techniques here, including multi-line ellipsis.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.