473,324 Members | 2,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

What's the usual way to setup input textbox width (and be cross-browser) ?

I'm creating a form with asp.net.
I have my inputs like this :

<label for="USER_COMPANY">Company Name:</label>
<asp:textbox id="USER_COMPANY" runat="server" cssclass="inputBox"
style="width:250px"></asp:textbox><br >

This worked great until I used the designer and it took ride of the
"style=width:250px" and changed them without my approval for
"width:250px".

The worst thing. The "width:250px" is correctly rendered to IE as
"style=width:250px", very expectable and nice. But for Firefox and
Opera it does not !. Actually, it does not return nothing about the
input textbox width to those browsers.

What's the solution for this ? Every time I touch the designer, it
drops my "correct" markup.

Nov 19 '05 #1
0 825

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jesse Joseph Acosta | last post by:
Hi, Im working on a site for a friend, and we've setup a popup window for a couple pages, but with the code we have, the variables for the width and height are in the <script> portion of the code,...
2
by: Jay Vinton | last post by:
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...
1
by: craigkenisston | last post by:
I'm creating a form with asp.net. I have my inputs like this : <label for="USER_COMPANY">Company Name:</label> <asp:textbox id="USER_COMPANY" runat="server" cssclass="inputBox"...
0
by: Stuart | last post by:
Hi there Someone please put me out of my misery... I am attempting to offer a graphical view of some data in an aspx page by using the width property of some colored text boxes. The data is...
1
by: AndrewF | last post by:
Hi there, I have racked my brains for days on this and can't seem to find a solution. I have a form which is dynamically creating some text boxes on it. The text boxes are single line ones. ...
4
by: GregG | last post by:
Greetings, I have been working with the new GridView control, and while figuring out most of it's idiosyncrasies on my own, have stumbled upon a problem I cannot seem to resolve. We have...
1
by: eSolTec, Inc. 501(c)(3) | last post by:
Thank you in advance for any and all assistance. I'm trying to validate an email address entered into an input textbox. Does anyone have any code for this? -- Michael Bragg, President...
4
by: DeanJo | last post by:
I am trying to develop a resize module i can include on my pages that calculates the size of input fields based on the screen resolution... I can already detect the screen resolution, and i have...
1
by: Jeff | last post by:
hi asp.net 2.0 Below is some markup I have trouble with. The problem is that the Textbox doesn't fill the entire DataCell. I've set width of TextBox to 100%.... The point is that I want the *...
2
by: perhapscwk | last post by:
My code below, I can add and remove textbox, however, it can add/remove the last one only. How I can add a input textbox between field? thanks. my html file <script...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.