I am working on a responsive table that has a fixed width for certain cells, but I want to reset the colspan so that the following row does not inherit this fixed width. In my specific case, the numbers 1 to 7 have a set width of 40px due to the 'position' class. The next row contains two buttons that should each take up 50% of the table width. However, when I add the half class to achieve this, it overrides the width set by the 'position' class. Since there are 8 tds total, I tried giving each button td a colspan of 4, but then the last button inherits the fixed width of the 4 'position' classes, making it too wide at 160px. Is there a way to clear the colspan and fixed width for just these buttons?
Because the number of items in the table can vary from 1-7, simply adding a colspan with the same number as the items is not an ideal solution.