Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Cool! I coded up a kind-of-working solution before I saw your answer. gist.github.com/708155 Commented Nov 20, 2010 at 21:20
  • 1
    This: "text-overflow: ellipsis;" is all that is needed now in all current versions of IE, Opera, Firefox, Chrome & Safari so only need the work arounds (and "-o-text-overflow:") for older browser support. Commented Oct 16, 2012 at 10:51
  • 1
    What about a multi-line text solution? This will only work for single line of text. What for-example if I have place for 3 lines of text and I wand that '...' is added in the last line where the text is clipped? Commented Sep 11, 2013 at 11:43