Re: controlling length of text-type INPUTs
by KeithWBell(at)aol.com
|
Date: |
Mon, 22 May 2000 05:07:01 EDT |
To: |
robert(at)baylogic.com, hwg-techniques(at)hwg.org |
|
todo: View
Thread,
Original
|
|
In a message dated 22/05/00 08:48:04 GMT Daylight Time, robert(at)baylogic.com
writes:
> code like this -
>
> <INPUT NAME="name" TYPE="text" SIZE=12>
>
> - renders an acceptable length in IE 4.X and 5.0, but a much
> longer (and unacceptable) length in NN 4.X, at least on my
> systems.
>
> Thus my question - is there some way (stylesheets perhaps?) to
> control the length of text input boxes so they're roughly the
> same in all browsers.
Hi Robert
My approach is to set the SIZE attribute in the INPUT tag so that the text
box looks the "right" length in Netscape, then to add an inline STYLE for IE,
e.g.
<input type="text" name="whatever" size="14" style="width: 150px">
produces a text box that is 150 pixels wide in IE and a box about the same
size in NN4. Just experiment with sizes to get what you need.
HTH
Keith Bell
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA