Textbox width, Netscape

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

A server control textbox width displays in IE6 the same as in the 2003 IDE.
But in Netscape 8 and Firefox 1.0.4 the width is only about 1/3 of it's
design setting.

I've tried putting the textbox in a table and in a panel but with no change.

Does anyone know how to get around this?

Jay
 
This is an issue with multi browser (or multi version) support for an
application. You might want to use percentages to set the size of your
control relative to the page, instead of hard coded pixel sizes.
 
haven't tried it in Netscape but it IE & Firefox the following textbox has
the same size setting the width using css.

In my stylesheet:
input.UsernameTextBox
{
font-family: Verdana, Tahoma, Trebuchet MS, Arial;
font-size: 12px;
font-weight: normal;
color: #000000;
width: 200px;
}

and on my page:
<input type="text" id="usernameTextBox" class="UsernameTextBox" />

Gabriel Lozano-Morán
 
Back
Top