Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > What's the usual way to setup input textbox width (and be cross-browser) ?

Reply
Thread Tools

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

 
 
craigkenisston@hotmail.com
Guest
Posts: n/a
 
      07-27-2005
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.

 
Reply With Quote
 
 
 
 
Ben Amada
Guest
Posts: n/a
 
      07-27-2005
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:

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


It should work if you define the width in your CSS file under "inputBox".
You can then drop the style="width:250px" out of your aspx file.

Ben


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
trouble with DataCell Width and Width of Textbox Jeff ASP .Net 1 10-08-2008 04:18 AM
Width of text input box vs. password input box cjl HTML 1 10-31-2005 11:46 AM
Textbox width scaling to width of data not width of page? AndrewF ASP .Net 1 10-10-2005 04:38 PM
What's the usual way to setup input textbox width (and be cross-browser) ? craigkenisston@hotmail.com ASP .Net 0 07-27-2005 06:02 AM
Usual way to hide jpegs. Extraction off application jpgs?? markus C Programming 8 06-29-2004 12:52 AM



Advertisments