By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,563 Members | 1,307 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,563 IT Pros & Developers. It's quick & easy.

How to theme Browse button of a FileUpload control?

P: n/a
Theming seems only to affect the text box of a FileUpload control, not
the Browse button. Is there any way to theme the button as well?

Thanks,

ChrisN

Jul 20 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
I managed to accomplish this using FrontPage while working on a
Sharepoint site a while ago. You can use the style attribute and then
set border-color, border-width, etc. I would imagine a css class would
be effective too, although I have not tried that with a FileUpload
control.

e.g.
<asp:FileUpload ID="FileUpload1" runat="server"
style="border-color:#b8b8b8;"/>

Hope this helps.

-Chris Lincoln

ye*******@yahoo.co.uk wrote:
Theming seems only to affect the text box of a FileUpload control, not
the Browse button. Is there any way to theme the button as well?

Thanks,

ChrisN
Jul 20 '06 #2

P: n/a
check out the fileupload control from metabuilders, let's you add
server styles:

http://www.metabuilders.com/Tools/FileUpload.aspx

neil
ye*******@yahoo.co.uk wrote:
Theming seems only to affect the text box of a FileUpload control, not
the Browse button. Is there any way to theme the button as well?

Thanks,

ChrisN
Jul 20 '06 #3

P: n/a
It is not possible to style the actual button on an file upload. I have
seen a hack that uses CSS to place a "fake" style over the top of the
button.. here is a link that explains it better.

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


ne**********@gmail.com wrote:
check out the fileupload control from metabuilders, let's you add
server styles:

http://www.metabuilders.com/Tools/FileUpload.aspx

neil
ye*******@yahoo.co.uk wrote:
Theming seems only to affect the text box of a FileUpload control, not
the Browse button. Is there any way to theme the button as well?

Thanks,

ChrisN
Jul 20 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.