Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Feb 2009
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How can I change the Browse button that comes with File input tag?

    I need to replace the Browse... button that comes with File input tag with an image that looks like a button. How can I do that?!

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,678
    Thanks
    6
    Thanked 1,009 Times in 982 Posts
    Impossible with plain HTML/CSS. Almost all browsers have totally different implementations of the file upload input and the styling possibilities are very limited if at all present. The only thing you can do is using some more or less complicated JavaScript to replace the entire input with a regular element and make it perform the usual action on user interaction.

  • #3
    New Coder
    Join Date
    Feb 2009
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    Thank you. Now, I know for sure it cannot be done!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •