I am wondering if there is an easy way to do this using HTML / CSS.
I have a dynamic fixed width table with 4 columns:
<table>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
I want all data columns to have the same width.
So, if any column is completely empty, I want it to fall, and the rest of the columns have the same width.
I know that my jsFiddle is incorrect, but I wanted to have it as a starting point.
I looked. How to get table cells evenly distributed? but that’s not quite what I am looking for. I also looked at fixed-width columns evenly - in a flexible setting , but this is also not the same.
EDIT
td:empty {display: none} - , , , . jsFiddle