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
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Direct Link To This Post Topic: VS.NET and Firefox
    Posted: 18 September 2004 at 3:15pm
Hey guys,

I'm having some trouble with the way that Mozilla firefox shows form fields that were designed in the Visual Studio.NET 2003 Designer.
Basically if I have a Textarea (just a normal .NET Textbox with TextMode set to Multiline) and I drag it to the size I want it looks fine in IE, however firefox seems to ignore it and display it as a tiny field.
How am I supposed to define the size of form fields in Mozilla?
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: 18 September 2004 at 3:26pm
Just incase you have no idea what I am going on about (like usual) I have uploaded a image showing it. Those fields should be a lot bigger (and are in IE)


Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Direct Link To This Post Posted: 18 September 2004 at 7:19pm

Text boxes and such vary by font and character size - they are sized for x characters/columns wide by y lines tall. The gecko browsers, at least at larger screen resolutions, tend to display text smaller than ie does. So, a box that's 50 characters wide looks smaller in gecko than in ie.

On my 1600x1200 display, I have to increase font's by 120-125% in mozilla/firefox to get them close to ie visual representations.

One solution might be to use css to define font sizes by % - e.g. normal = 100% and change the css to increase the size by 20-25% if gecko's are detected. - Note that some font's scale better than others, and some scale well in certain sizes, put poorly in other sizes. You'll have to do a little experimentation.


Lead me not into temptation... I know the short cut, follow me.
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: 19 September 2004 at 5:04am
hmm From what I see it likes ignoring me, I set the width to 100% and it still  displays it small
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: 19 September 2004 at 5:06am
Actually it seems to like it when I use CSS
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Direct Link To This Post Posted: 19 September 2004 at 4:26pm
Might have something to do with the doctype. Don't think width="" is supported for textboxes in 4.01 strict and xhtml. Might want to try width="" and specify the doctype as 4.01 transitional.

Lead me not into temptation... I know the short cut, follow me.
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: 19 September 2004 at 4:34pm
As its a server control I think ASP.NET translates it to style="WIDTH:xxxpx". I will check though
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: 19 September 2004 at 4:41pm
Yes, as far as I can see it is being translated to a style tag
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.