[thelist] CSS ? size of text input

Bryce Johnson bryce at popped.com
Wed Feb 21 11:51:42 CST 2001


The way that we deal with it at our firm is to

<input type="text" name="field" value="" size="30" style="width:300px;">

Netscape 4 will ignore the style attribute and go with the size, so we use
SIZE= for netscape

IE4+ will readthe style attribute and overide the size= with the style=, so
we use STYLE="width:;" for IE

bryce



----- Original Message -----
From: "Peter-Paul Koch" <gassinaumasis at hotmail.com>
To: <thelist at lists.evolt.org>
Sent: Wednesday, February 21, 2001 5:20 AM
Subject: Re: [thelist] CSS ? size of text input


>
>
> >I want to specify the width of a text input on a form using the CSS
> >width property. I am used to specifying with a character length such
> >as:
> >
> ><input type="text" name="field" value="" size="30">
> >
> >How do I calculate from a size specified by the HTML size attribute
> >to the CSS width so it will appear the same size as in:
>
> You can't calculate it, just tweak both values until it looks the same in
> both browsers.
>
> ppk
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !
>





More information about the thelist mailing list