What is unknown is the number of cells in a table row, or the number of cells varies from row to row, but they must all fit in a certain width. In this article I will tell and show an example of creating such table.
Determination of how many cells in a row, and the application of unique rules to them, is done in CSS using pseudo-selectors (
:nth-last-of-type). That is why will work only on IE9 .
Next the example code, when cells can be 1,2,3 or 4.