Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - VS.NET and Firefox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedVS.NET and Firefox

 Post Reply Post Reply Page  <12
Author
sjb189 View Drop Down
Newbie
Newbie
Avatar

Joined: 11 November 2004
Location: United States
Status: Offline
Points: 2
Direct Link To This Post Posted: 11 November 2004 at 5:13pm

With regards to Mart's issue of textboxes created in .NET and displaying incorrectly Firefox, I am having similar problems. Mart mentioned that using CSS seemed to work. I have tried setting the width directly and using a CSS file instead, none seem to be working. All my text boxes are being displayed with a default length in Firefox.

Any suggestions on how to solve this issue using CSS or otherwise?

Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Direct Link To This Post Posted: 11 November 2004 at 5:36pm
I fixed it in the end by using relative widths (%) and not absolutes widths (px) which VS likes to use.
Back to Top
jookyone View Drop Down
Newbie
Newbie


Joined: 16 November 2004
Status: Offline
Points: 1
Direct Link To This Post Posted: 16 November 2004 at 1:30pm
This may be something of a dirty workaround to some people, but to avoid having to associate css rules with my textboxes or other input fields I simply would define a textbox like this:
<asp:textbox id="Textbox1" runat="server" columns="10" width="50px">


IE uses the width attribute to render the input control, and Firefox uses the columns attribute, ignoring the width attribute completely. Of course, as mentioned in a previous post, Firefox computes the width of an input field using the columns attribute by multiplying the number of columns with the width of the font characters. So keep that in mind, but if you use a consistent font size for your form controls throughout your application, it should be no trouble to figure out the relation of width in pixels to the columns value.

Hope that helps you out.
Back to Top
sjb189 View Drop Down
Newbie
Newbie
Avatar

Joined: 11 November 2004
Location: United States
Status: Offline
Points: 2
Direct Link To This Post Posted: 16 November 2004 at 2:02pm

Thanks for the replies, I am currently busy with other things, but will certainly try these suggestions out next week...

Thanks.

Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.