How to put ellipsis on text in cells?

How to put ellipsis on text in cells?

sanghviyashsanghviyash Posts: 2Questions: 1Answers: 0

Hey,
What I need is an ellipsis after 15 characters, or so. But on the onmousehover() event I need a tooltip with the original value of the cell. How I can accomplish this?
I need help with only the first part i.e. ellipsis.
I know thi squestion has been asked multiple times, but I couln't find the correct answer.
Thanks,
Yash

Answers

  • sanghviyashsanghviyash Posts: 2Questions: 1Answers: 0

    this is what I've tried

    .table th, .table td { max-width: 200px; min-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  • allanallan Posts: 63,205Questions: 1Answers: 10,415 Site admin

    This blog post has details of how it can be done.

    Allan

This discussion has been closed.