Truncate with Ellipsis

/ Published in: CSS
Save to your folder(s)

Copy this code and paste it in your HTML
  1. .truncate {
  2. overflow: hidden;
  3. text-overflow: ellipsis;
  4. white-space: nowrap;
  5. -o-text-overflow: ellipsis;
  6. -ms-text-overflow: ellipsis;
  7. -moz-binding: url('/xml/ellipsis.xml#ellipsis');
  8. }


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.