I am making a table which can have cells with long strings. To make things fit I am trying to use the overflow:hidden
and overflow-text:ellipse
styles to hide the long texts. At first I was thinking I was doing something wrong, but now I am noticing that none of the overflow features work with any table elements, but work just as expected with <div>
elements. I've worked mostly around this by placing a <div>
in each cell, but this is awkward...
Is there a way to get overflow to work with <td>
elements, or do I need to put <div>
elements in my td's to get them to work with overflow?
here is a JSfiddle showing tables with and without division around or within the elements giving the desired behavior as well as a table without divisions showing what I am talking about.