G
Guest
Hi everyone,
I have a number of textboxes, lined up in a html table. I have split the table into different columns. The column widths are all relative, that is, % rather pixels or points so that it can grow / shrink. The textboxes are then placed into table cells and have their widths to be 100% of the width of their container (table cells). Example <table id="Table1" width="100%" ....> <tr> <td width="20%">First Label column</td> <td width="15%"> <asp:textbox id="TextBox1" Width="100%" Runat="Server"></asp:textbox> </td> <td width="20%">Second Label column</td> <td width="15%"> <asp:textbox id="TextBox2" Width="100%" Runat="Server"></asp:textbox> </td> <td width="*"> </td> </tr> </table>
When I display the text in TextBox1. If the text is long, the textbox automatically resizes to display whole string and pushes everything on the right to the right. I don't want this, is there a way to stop it from expanding beyond its allocated space?
Any help is greatly appreciated.
Thanks,
Calvin
I have a number of textboxes, lined up in a html table. I have split the table into different columns. The column widths are all relative, that is, % rather pixels or points so that it can grow / shrink. The textboxes are then placed into table cells and have their widths to be 100% of the width of their container (table cells). Example <table id="Table1" width="100%" ....> <tr> <td width="20%">First Label column</td> <td width="15%"> <asp:textbox id="TextBox1" Width="100%" Runat="Server"></asp:textbox> </td> <td width="20%">Second Label column</td> <td width="15%"> <asp:textbox id="TextBox2" Width="100%" Runat="Server"></asp:textbox> </td> <td width="*"> </td> </tr> </table>
When I display the text in TextBox1. If the text is long, the textbox automatically resizes to display whole string and pushes everything on the right to the right. I don't want this, is there a way to stop it from expanding beyond its allocated space?
Any help is greatly appreciated.
Thanks,
Calvin