Is it possible to make some cells not affect the width of a column but leave other cells to decide the width?
So far, the answers I've seen are table-layout: fixed
but AFAIK, table-layout: fixed
requires knowing the size of cells. I don't know the size of cells. I just know certain cells may be too large. So, I want the layout to work as though the content in certain cells didn't exist for width. Then I want to put content in those cells with overflow: hidden
Example:
+----+----+----+----+----+
| A1 | A2 | A3 | A4 | A5 |
+----+----+----+----+----+
| B1 | .. | B3 | B4 | B5 |
+----+----+----+----+----+
| C1 | C2 | C3 | C4 | C5 |
+----+----+----+----+----+
I don't know what content will appear in A1-A5, B1, B3-B5, C1-C5. I want the table to lay it self out like it would if there was no content at ..
But, I actually want to put content in ..
and have it overflow: hidden
in case it happens to be too wide
this Q seems related but starts with a specified width. I'm looking for a solution that doesn't specify a width.