Mohammad Nadeem Mohammad Nadeem - 6 months ago 510
CSS Question

Applying css on asp.net FileUpload Control's Browse Button only

I have a FileUpload Control like this

<asp:FileUpload ID="fileuploader" runat="server" />


Now I want to apply css only on the Browse button part

alt text

How can I do this?

Answer

Styling an input tag with type="file" requires a bit of work, browsers don't behave similarly when you try to style them unfortunately.

There are a few methods of doing so though: