I am fairly sure this is impossible with just html/css, but I wanted to ask just in case. Let's say I have <div>
inside a <td>
, the div has the overflow: hidden;
style. Instead of the overflow just being cut off, I want to:
- Detect that there is overflow.
- React by deleting the last 3 letters of div content and add a "..." at the end.
Edit: I missed a critical detail when originally asking the question - is this possible to do with overflow-y, so I can still have multiple lines of text before it generates the "..."?