Angela,

Your suggestion is for input type="text". It does not work for input
type="file". See shots attached produced by the following style:

div#Attachment {width: 600px;background-color:yellow;border: 1px solid black;}
#txtAttachment {width:400px;background-color:red;text-align: right;}

Cheers, Irina.

On Fri, 4 Feb 2005 10:44:32 +0100, Ricci Angela
<[EMAIL PROTECTED]> wrote:
> 
>         Terrence
> 
>         All you need to do is to give an id to the form field and define its 
> width on the CSS. It will work for all browers.
> 
>         <input type="text" id="ffield" />
> 
>         CSS: #ffield {width: 100px;}
> 
>         Cheers!
>         Ge RICCI
> 
> -----Message d'origine-----
> De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la
> part de Terrence Wood
> Envoyé : vendredi 4 février 2005 10:27
> À : wsg@webstandardsgroup.org
> Objet : Re: [WSG] Is there any way to set the width of a file input
> field in Firefox?
> 
> Styling file input is inconsistent cross browser and platform.... here
> is a work around:
> 
> http://www.quirksmode.org/dom/inputfile.html
> 
> Terrence Wood.
> 
> Irina Ahrens wrote:
> > Hello,
> >
> > Does anybody knows how to set the width of a file input field in Firefox?
> ******************************************************
> The discussion list for  http://webstandardsgroup.org/
> 
>  See http://webstandardsgroup.org/mail/guidelines.cfm
>  for some hints on posting to the list & getting help
> ******************************************************
> 
> ******************************************************
> The discussion list for  http://webstandardsgroup.org/
> 
>  See http://webstandardsgroup.org/mail/guidelines.cfm
>  for some hints on posting to the list & getting help
> ******************************************************
> 
>

<<attachment: InputOfFileType_IE6.gif>>

<<attachment: InputOfFileType_Firefox.gif>>

Reply via email to