I've implemented this property in a .css file on the table shown below and there are 9 records.
.fixed tbody td, thead th {
width: 5.2%;
float: left;
}
In my scenario, when there are 4 columns, the width should be 23.2%; for 5 columns, it should be 18.2%; for 6 columns, 16.2%; for 7 columns, 14.2%; and for 8 columns, 12.2%. However, more columns may be added in the future. How can I dynamically manage the column widths without them increasing or decreasing sequentially?