Forum Moderators: open

Message Too Old, No Replies

Controlling form fields in Netscape 4...

The fields are too wide, need suggestions.

         

theadvocate

7:43 pm on Feb 7, 2004 (gmt 0)

10+ Year Member



Hi,

My form fields look great in IE using CSS, but are extremely too long in NN4.

Below is some of the form field entries for controlling size:

<input maxLength="40" name="Name" size="39" style="font-size: 10px; color: #6D6D36; font-family: Arial; border: 1 solid #6D6D36">

<textarea name="BusinessDescription" rows="3" cols="46" wrap="virtual" style="font-family: Arial; font-size: 10px; color: #6D6D36; border: 1 solid #6D6D36"></textarea></td>

Those are the two I am having trouble with.

When I decrease the size to fit for NN4, it is way too small on IE.

Is there a different way to define the field size that is more compatible for both browsers?

Thanks!

Edouard_H

7:48 pm on Feb 7, 2004 (gmt 0)

10+ Year Member



You can use an inline style to set the width. Netscape 4 will ignore it. Then use the size to get the width you want in Netscape - most other browsers will use the style.

<input maxLength="40" name="Name" size="39" style="width: 200px; font-size: 10px; color: #6D6D36; font-family: Arial; border: 1px solid #6D6D36">

scottmack

9:01 pm on Feb 8, 2004 (gmt 0)

10+ Year Member



>>>>> font-family: Arial;

Uce courier font family instead.