0

I've table, In data cell if text is long then I have implemented ellipsis . What I want to achieve if data cell have ellipsis then I want to show tooltip on normal text I don't want to show tooltip . Could someone please help me how to achieve my goal

Thanks

Code

table tr td {
      text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  }
<table>
  <tr>
    <td>Text is very long . Text is very long . Text is very long . Text is very long . </td>
    <td>Text is normal</td>
  </tr>
</table>
  • 1
    Try something with [this answer](https://stackoverflow.com/a/10017343/1169519), then ask a question if you get stuck. – Teemu Dec 31 '20 at 07:26
  • Does this answer your question? [HTML text-overflow ellipsis detection](https://stackoverflow.com/questions/7738117/html-text-overflow-ellipsis-detection) – Louys Patrice Bessette Dec 31 '20 at 15:30

0 Answers0