I've got three columns in the table of width: 100%
.
- 2nd and 3rd column should be
width: 100px
no matter what - 3rd column should be as much as it needs (no wrapped lines), but nothing more.
- 1st column should consume all the remaining space.
JSFiddle: http://jsfiddle.net/o66czLtj/4/
Please note both the 1st and the 4th column don't have the width
specified, so their widths are counted automatically by the browser. However, I want the 1st column to be the most important, and take all the remaining space, but only after the 4th column was able to render itself without wrapping any lines.
Actual:
Expected:
How to achieve this without hard-coding the width of the 1st or the 4th column? Perfectly with CSS only.
Rationale: number of buttons in the 4th column is unknown. It may be 1, it may be 4.