So, I have a table with some text, and I want to truncate the text by a certain length. I achieved this using text-overflow .
.overflow { width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
When I click on a table cell, I want all the text to be displayed (by changing the height of the row). Like this:
+------------------+ +------------------+ | Header | | Header | +------------------+ +------------------+ | First text block | --> | First text block | +------------------+ +------------------+ | A long text b... | | A long text | +------------------+ | block | ^click +------------------+
I also managed to do this.
But I also want to put the + sign after "..." to show the user that the cell is interactive!
+--------------------+ | Header | +--------------------+ | First text block | +--------------------+ | A long text b... + | +--------------------+
How can i do this? I tried using :after , but added only text + after all the text.
What I still have: http://jsfiddle.net/6qLcrswc/1/
Thanks!
source share