I am trying to create a table with two columns and specific width. The left cell should display a single-line text with auto-ellipsis, while the right cell should have dynamic content that adjusts the width of the cell accordingly, shrinking the left cell's width.
Using the div/css solution with display: table/table-cell
is not ideal as it makes both cells 50% wide.
For reference, here is a div fiddle.
Similarly, the raw-table/css solution is not suitable either, as white-space: nowrap
(required for text-overflow
) disrupts the table's layout mechanism and can cause it to exceed its original width.
You can view an example of this issue in the table fiddle.
If anyone can provide a solution to this mysterious mystery, please let me know. Best regards, Daniel