CSS string truncation with ellipsis


Having written much string truncation logic in JavaScript, or in the case of GWT, in Java that becomes generated JavaScript, I was really excited to find this CSS truncation with ellipsis solution that works cross-browser. For bulk rendering operations like truncating every cell in a huge table (hundreds or thousands of rows) this works much better than measuring the rendered element and updating the contents which is what many of the traditional approaches come down to.

, ,

  1. No comments yet.
(will not be published)