-1

i have set my td to certain width. i want to display text inside the td. i want that when the text is longer than the td width it will cut it or put ... at the end of text. so that the text will display one line only and not wrap it. How can i do this?

Thanks

NaYaN
  • 1,300
  • 7
  • 11
user2699175
  • 929
  • 2
  • 9
  • 16

2 Answers2

0

You can accomplish this using CSS3 text-overflow method.

text-overflow:ellipsis;
Ganesh Pandhere
  • 1,612
  • 8
  • 11
0

Reference

JSBIN

Set style as

td {
  white-space: nowrap
}
Community
  • 1
  • 1
Naveen Kumar Alone
  • 7,536
  • 5
  • 36
  • 57