I am trying to shorten the length of columns in a specific table.
I use jQuery to add dots of text overflow and a few more css properties.
I also add a tooltip using some more jQuery. Here is my code:
$('#table_id tr td:not(:last)').css({ "text-overflow": "ellipsis", "max-width": "110px", "overflow": "hidden", "display" : "block" }).each(function (index, element) { $(element).attr("title", $(element).text()); });
Everything works fine in Firefox and Chrome, but (surprise! Surprise!) IE7-9 displays the text in its entirety.
Any idea what I'm doing wrong? Thanks!
PS
I also tried to specify the property "width" without possibility.
source share