J
Jeff
Using ASP.NET 1.1
I have an <asp:TextBox... for which I set the width property --- "width=30".
The textbox is being rendered to the browser like this:
<input name="someName" type="text" maxlength="3" id="someID"
style="width:30px;" />
Notice the [Width=30] gets rendered as [style="width:30px;"]. This causes
the textbox to be 30 pixels wide, at least in IE and Opera.
I have discovered in testing that the [style="width:30px;"] part is *omitted
completely* from the rendered HTML when the page is requested by FireFox or
Netscape Navigator (6.2) - so the textbox (really <input... />) gets some
default width rather than being set to 30 pixels wide.
What can I do to set the width the same for FireFox and NN (same as for IE)?
Thanks!
I have an <asp:TextBox... for which I set the width property --- "width=30".
The textbox is being rendered to the browser like this:
<input name="someName" type="text" maxlength="3" id="someID"
style="width:30px;" />
Notice the [Width=30] gets rendered as [style="width:30px;"]. This causes
the textbox to be 30 pixels wide, at least in IE and Opera.
I have discovered in testing that the [style="width:30px;"] part is *omitted
completely* from the rendered HTML when the page is requested by FireFox or
Netscape Navigator (6.2) - so the textbox (really <input... />) gets some
default width rather than being set to 30 pixels wide.
What can I do to set the width the same for FireFox and NN (same as for IE)?
Thanks!