Clamps (ie. cuts off) an HTML element's content by adding ellipsis to it if the content inside is too long.
While you can only truncate single lines with CSS by using
- For Internet Explorer, the element you clamp on needs to have its
line-heightset in pixels. A relative value will not work.
- There is also the
-webkit-line-clampCSS property, but that won't work in Firefox let alone IE.