Forum Moderators: not2easy
It might be possible to change the button style (in some browsers) by overriding some FORM or ELEMENT styles...
<FORM method="..." action="..." target="_blank">
...
</FORM>
<A href="..." target="_blank">...</A>
So, if someone could assist me in overriding some FORM or ELEMENT styles to change my <input type=file> button, I would be forever grateful?
Also, would it be possible, to change the button into an image?
Thanks a lot for any help.
Add a class to the input type:
<input type="file" class="uploadbox" name="whatever">
And include a class like this in your CSS:
.uploadbox {
font-family: verdana, arial, sans-serif;
font-size: 75%;
color: #797979;
font-weight: normal;
border: #797979 1px solid;
background-color: #ffffff;
width: 292px;
height: 17px;
}
Probably IE only but seems to work for me.
Do you by any chance know why they haven't (in the CSS standard) opened for modification of that button, since it is an important part of the design, and it is about the only element that can't be modified in one way or another
They have... But the reason why you can't style it is because the button "doesn't exist". It is generated by the OS, not the browser.
I can't say I'm still not a bit surprised why the button is not available for extensive customization, even though it is delivered by the OS and not the browser. But at least I now know why it is how it is, and I can relax about it.
Only thing is, I have to customize my design to suit the stupid browse button :) But that can be done...