Form's text box size wrong in Netscape? help?

Rob PetersJuly 27, 2001

I've got a site built that works great on IE, but has problems in Netscape. One of the most frustrating problems is that in Forms my text input box in Netscape does not pay attention to the size setting. For example suppose I write within my form text field:

input type="text" name="occupation_comment" size="35" value"engineer"

In IE this works nicely and the input text box is 35 characters long. In Netscape the box is approximately 65 characters long and destroys my layout. Any ideas how to make Netscape behave itself? Thanks very much, Rob Peters.

Thank you for reporting this comment. Undo
nbosboom_hotmail_com

hmmm,.. that is strange. Never heard of the input-tag not properly displayed by Netscape. Which browser-version of NN are you using? Do you use style-sheets for the style of the input-tag (that can be a problem in NN and MSIE). Is the input-tag placed inside a table-cel?

Perhaps you can post back the link to the site the shows the problem.

Niels.

    Bookmark   July 27, 2001 at 4:40AM
Thank you for reporting this comment. Undo
mikko_laine_nls_fi

I have the same problem with text input fields in Netscape 6. Text fields are inside table cells and Netscape makes them approximately 1/3 too long no matter what the cell widths are. I use a self-declared css class in which I have declared the font sizes and types. The field size can't be delared in stylesheet because the html for input fields is generated by an xsl-template which should be able to be used for different-sized fields. It's a big problem because I have a very limited space in the frame..

    Bookmark   January 24, 2002 at 5:11AM
Thank you for reporting this comment. Undo
Toothpick

Not that this is a helpful answer, but lots of stuff that works fine in I.E. doesn't work fine in Netscape. Netscape parses tables differently, doesn't handle a lot of the script well, etc.

--JoJo

    Bookmark   January 24, 2002 at 12:31PM
Thank you for reporting this comment. Undo
Carawood

Sorry I can't help you but I wanted to declare that I am having the same exact problem. I hate Netscape. It always gives me problems. I posted a message today regarding table borders that I hope someone can help me with.

But as for the form problem with Netscape ... I would love to know if you found anything, Rob.

Thanks,
Cara

    Bookmark   February 4, 2002 at 3:39PM
Thank you for reporting this comment. Undo
robpet

People at other forums sent me the following. Perhaps this will help for someone:

I found thet following explanation at http://www.saila.com/usage/tips/?print#textfield. He has some other good tips too.

Here's what he says:
Unfortunately, both Netscape and Internet Explorer display form fields using different criteria.

Because, Netscape uses the browser's monospaced font to render text in a text field, and IE uses a variable font  generally sans-serif typeface  it's best to optimize the box for Netscape first.

Once you've done that, use a style declaration (which older Netscapes will ignore) to stretch the box for Internet Explorer.

Here are three examples. RIGHT CLICK WITH YOUR MOUSE AND CHOOSE "VIEW SOURCE" TO SEE THE SOURCE CODE FOR THE THREE BOXES.
A plain Netscape 4.7 text input box:

An IE 5.5 text input box, styled to match the size of the Netscape box (the padding helps vertically align the text):

An IE 5.5 text input box, styled to match the size and look of the Netscape box (the border and font simulate Netscape's):

--------------------------
Another guy suggested this not great solution: "I decrease the NS size by using the style "font-family: new courier" for input boxes. But it doesn't decrease them as much as I'd like."

--------------------------

Another guy says: "I have the same problem with text input fields in Netscape 6. Text fields are inside table cells and Netscape makes them approximately 1/3 too long no matter what the cell widths are. I use a self-declared css class in which I have declared the font sizes and types. The field size can't be delared in stylesheet because the html for input fields is generated by an xsl-template which should be able to be used for different-sized fields. It's a big problem because I have a very limited space in the frame."

--------------------------
In my own case, I took a not-great dummy approach. The problem with over-sized NS 4.7 boxes only occurred when I was using Styles. Without styles, the box behaved in NS. So I stopped using styles for that page. It made some other stuff look not so hot, but I was willing to sacrifice to get those NS boxes the right size.

Here is a link that might be useful: tip on text box size and other tips

    Bookmark   February 5, 2002 at 2:46PM
Sign Up to comment
More Discussions
Checking for the presence of adblocker.
Asteroids This post was edited by chuggerguy on Fri,...
Richard (chuggerguy)
seo
My client website has hit down after google Penguin...
Tinaustin
How to post documents from googledoc into Post?
How do I attach a excel, and word documents to a post...
ladyrose65
bbcode2html
A post elsewhere got me playing around with the stream...
Richard (chuggerguy)
People viewed this after searching for:
© 2015 Houzz Inc. Houzz® The new way to design your home™