RhythmAddict112
Programmer
Hi all....
Through a little googling I've found how to change the style of an <input type=file> element. My trouble is I need to change the background color of the button and the background-color property seems to have no effect. I'm not sure if I'm doing something wrong, or this just isn't valid - does someone have a workaround for this? My code follows...
All hail the INTERWEB!
Through a little googling I've found how to change the style of an <input type=file> element. My trouble is I need to change the background color of the button and the background-color property seems to have no effect. I'm not sure if I'm doing something wrong, or this just isn't valid - does someone have a workaround for this? My code follows...
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">[/URL]
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
.bupload {
BORDER-RIGHT: #FFFFFF 1px solid;
BORDER-TOP: #FFFFFF 1px solid;
BORDER-LEFT: #FFFFFF 1px solid;
WIDTH: 69px;
BORDER-BOTTOM: #FFFFFF 1px solid;
FONT-WEIGHT: bold! important;
FONT-SIZE: 11px! important;
FONT-FAMILY: sans-serif, Helvetica, Arial;
BACKGROUND-COLOR: #9795bf! important
}
</style>
</head>
<body>
<FORM method="post" encType="multipart/form-data" >
<INPUT type="File" name="File1" ID="File1" class=bupload size=-1>
</form>
</body>
</html>
All hail the INTERWEB!