Textbox width, Netscape

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
 
G

Guest

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.
 
G

Gabriel Lozano-Morán

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top