Page 1 of 1

input tag file's background need to be change

Posted: Fri Nov 28, 2008 9:22 am
by madan koshti
Hi,
input tag file's background need to be change.

This code wont work in Mozilla but works in IE.
<input name="file" type="file" size="50" style="background-color: red;color:red" />

So how can I do same for Mozilla ?

Re: input tag file's background need to be change

Posted: Fri Nov 28, 2008 9:38 am
by mintedjo
Browser support for styles on inputs of type 'file' is terrible.
Apparently you cant do it without hacking at it with a big sharp spoon!

http://www.quirksmode.org/dom/inputfile.html