I'm facing an issue with my table where I have inputs and selects inside <td>
. The problem arises when the text in the options of the <select>
element is too long, causing the <td>
to expand and disrupt the overall layout of the table. Typically, the length of the content inside td and th should be equal, with the minimum width of a td being the length of the largest word in th. Adjusting the width of td or th doesn't work as it only affects the select element. Since the content within the options is dynamic, using a static width is not ideal. How can I prevent the select from expanding the td and ensure that both have equal widths? Checkout this Plnkr example for reference.