Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Input-tag IE vs Netscape

0 views
Skip to first unread message

Anders Tufvesson

unread,
Oct 20, 2000, 3:00:00 AM10/20/00
to

Hi!
I have a Input tag:
<input name="serach" type="Text" size="45" value="Search">

Without CSS it show the same length in Netscape 4.X and IE 4 and later

With CSS:
INPUT {BACKGROUND-COLOR: #FFFFCC; COLOR: #000000; FONT-FAMILY:
Verdana,arial, helvetica; FONT-SIZE: 11px}

The length is different!

WHY????

Anders


Steve Fulton

unread,
Oct 20, 2000, 3:00:00 AM10/20/00
to

Because you're using a variable-pitch font. IE calculates the width of the
input based on the average character width for the font and NS calculates it
based on the widest character width. If you use a fixed-pitch font (e.g.
Courier), the average and widest character widths are the same and IE and NS
will render the input the same.

=-=-=
Steve
-=-=-

"Anders Tufvesson" <and...@NOSPAMtufvesson.net> wrote in message
news:OmyYVeqOAHA.240@cppssbbsa04...

0 new messages