Hello,
Is it possible to hide the overflow of the text in say a fixed width div and replace it with "..."? It obviously looks ugly if the text is just cut off, I really need to be able to show a ... in these cases.
Hello,
Is it possible to hide the overflow of the text in say a fixed width div and replace it with "..."? It obviously looks ugly if the text is just cut off, I really need to be able to show a ... in these cases.
I'm not sure if you can do that only with CSS, you have to use either javascript or php.
You cannot do this with css. You'll have to do it with PHP or Javascript. Here's a decent tutorial on doing it with JS.
You can do it with text-overflow: ellipsis;
, but it doesn't seem to work in IE6 and Firefox..
Hope this will be helpful
$('#customComboBox').text(($.trim($('#customComboBox').text()).length > 19) ?
$.trim($('#customComboBox').text()).substring(0, 16) + '...' :
$.trim($('#customComboBox').text()));