Friday, May 08, 2009

How can a textbox fill 100% of a table cell?

Ever wanted to have a textbox fill 100% of a table cell?

For unknown reason, <asp:TextBox ID="uxName" runat="server" Width="100%" /> will not work as expected.

It will work only if the actual style is set.
i.e. <asp:TextBox ID="uxName" runat="server" Width="100%" />

Strange, but true.

2 comments:

CF said...

got diff meh?

said...

Yes, there is. Tried it out yet?