input tag file's background need to be change

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
madan koshti
Forum Commoner
Posts: 50
Joined: Fri Jun 06, 2008 4:25 am

input tag file's background need to be change

Post 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 ?
mintedjo
Forum Contributor
Posts: 153
Joined: Wed Nov 19, 2008 6:23 am

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

Post 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
Post Reply