I want a fixed-width table with 1 small and 2 large columns like so:
|..|....|....|
|..|....|....|
|..|....|....|
using
td.small { width: 20% }
td.large { width: 40% }
Then I want to add an extra large col with colspan=2 like so
|.......|....|
|..|....|....|
|..|....|....|
using
td.small { width: 20% }
td.large { width: 40% }
td.extralarge { width: 60% } /* 20+40=60 */
But I keep ending up with:
|.......|....|
|...|...|....|
|...|...|....|
A more graphical example is found on jsbin
** edit **
Sorry, I missed one detail:
I must use (or so I think..?) table-layout: fixed
since I'm having some special overflowing properties of the cells:
td {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
Updated jsbin found here.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…