Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > width of text box control in mozilla

Reply
Thread Tools

width of text box control in mozilla

 
 
will eichert
Guest
Posts: n/a
 
      11-24-2003
I'm new to asp.net, so forgive if this is obvious. I spent some time
in the doc before posting, fwiw.

I have a web form page with some web server text box controls. They
display correctly in IE, but not in Mozilla (1.5). The width parameter
is ignored. Is there a way to get the width to display correctly in
Mozilla?

I've tried the different settings for targetSchema in the document
class that contains the form, and it didn't seem to make any
difference.

One of the controls:
<asp:textbox id="address" style="LEFT: 24px; POSITION: absolute; TOP:
280px" runat="server" Width="320px" Height="19px"></asp:textbox>

To contact me via email, remove the DELETEME in the address.

Thanks,

Will
 
Reply With Quote
 
 
 
 
Ken Cox [Microsoft MVP]
Guest
Posts: n/a
 
      11-26-2003
Hi Will,

Does it work if you add the width as a style attribute in code?

Private Sub Page_Load _
(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
address.Style.Add("width", "320px")
End Sub

"will eichert" <> wrote in message
news:...
> I'm new to asp.net, so forgive if this is obvious. I spent some time
> in the doc before posting, fwiw.
>
> I have a web form page with some web server text box controls. They
> display correctly in IE, but not in Mozilla (1.5). The width parameter
> is ignored. Is there a way to get the width to display correctly in
> Mozilla?
>
> I've tried the different settings for targetSchema in the document
> class that contains the form, and it didn't seem to make any
> difference.
>
> One of the controls:
> <asp:textbox id="address" style="LEFT: 24px; POSITION: absolute; TOP:
> 280px" runat="server" Width="320px" Height="19px"></asp:textbox>
>
> To contact me via email, remove the DELETEME in the address.
>
> Thanks,
>
> Will



 
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
div box questions; float text around a box, fit box to image size Gnarlodious HTML 4 05-05-2010 11:30 AM
Drop Down List Border Width vs Text Box Border Width Coder ASP .Net 1 06-24-2006 01:27 PM
Width of text input box vs. password input box cjl HTML 1 10-31-2005 11:46 AM
Off Topic: Width of text input box vs. password input box cjl Javascript 7 10-30-2005 10:11 PM
Textbox width scaling to width of data not width of page? AndrewF ASP .Net 1 10-10-2005 04:38 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57