I'm facing a challenge with setting the width and height for table data that changes dynamically based on different values. The dimensions of the table itself are not definite, so I need to find a solution. Here's the code snippet I'm currently using:
<td style='width:30px; max-height:10px; overflow:auto; '>
<input type='checkbox' name='facets'>
+ facetList[count].term + "(" + facetList[count].count + ")" + "</td>";
However, when I apply this CSS, the output doesn't display as expected. Can you help me identify what might be wrong with my approach?