Hey,
I have a table with a dynamic drop down list.
The width of the drop down will change depending on its content.
I would like the table column to be the same as the width of the drop down.
If I set a width less than the size of the dropdown IE seems make the column bigger than the drop down whilst wrapping the column title it inserts whitespace on either side of the dropdown.
Is there a way in css to say just make the column the same size as its content?
Thanks in advance
EDIT
Here is a sample html table that includes my current fix (kludge)
<table id="mappingtable" width="100%" align="center" cellspacing="0" cellpadding="0" border="0">
<tr>
<th width="80px">FixedWidthColumn</th>
<th width="80%">ExpandingColumn</th>
<th width="122px"> </th>
<th>DynamicColumn</th>
</tr>
<tr>
<td align="center">1</td>
<td>Text</td>
<td align="center">Button</td>
<td align="center">DropDownList</td>
</tr>
</table>
The problem exists without any css
If I remove the width="80%" from the expanding column the dynamic column will have whitespace
I have tried width: auto on the dynamic column and setting it to a fixed width but none of these work for me