Welcome to Community Server Sign in | Join

/Dan/.NET - Dan Robey's .NET Dumping Spot

IESL Software

<April 2005>
SuMoTuWeThFrSa
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

Post Categories

Navigation

Subscriptions

firefox/IE ASP.NET textbox

Just in case anyone else ever has this problem, the asp:textbox in ASP.NET has the two width properties "Width" and "Columns" if you want to set the width of a textbox to a certain size so it will display correctly across browsers, both width and columns must be set. Internet Explorer uses the width field to display on a pixel basis, and firefox uses the "size" attribute which Columns will set when rendered. If you set one and not the other, the textbox width will be the correct size in one but not the other.

Also remember that using the autoindent function in Visual Studio 2003 with inline imperatives will add tabs which IE sometimes sees as extra spaces, screwing up precision page layouts, especially around TD elements.

posted on Monday, April 11, 2005 3:41 PM by dsrobey

# Textbox width not set in Firefox or browsers besides ie. @ Tuesday, August 14, 2007 2:34 PM

Textbox width not set in Firefox or browsers besides ie.

Kendall's Blog