Ellipsis without fixed width
I want to show the description on one line and add ellipsis at the end.
With
overflow-hidden overflow-ellipsis whitespace-nowrap
, I have to set fixed width which distorts the layout of the table.
Is there a way to do this without setting fix width.1 Reply
without having some actual code, it is hard to help
you can try it with
table-layout: fixed
(ref: https://developer.mozilla.org/en-US/docs/Web/CSS/table-layout)
If not, please share your code (only the relevant part) in a working codepen/sandbox
https://codepen.io/MarkBoots/pen/eYXpbEa