01.12.2015 18:12

Статьи Truncate text with ellipsis CSS

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;

Browser support here.

Source: CSS Tricks

Comments (1)

xiangfacai says:

here we go!

Leave a Reply