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 2 of 2
  1. #1
    Senior Coder durangod's Avatar
    Join Date
    Nov 2010
    Location
    southwestern USA
    Posts
    1,612
    Thanks
    311
    Thanked 34 Times in 33 Posts

    How to style an input type file browse button

    Hi i am changing all the buttons on the site to the same theme, but i have run across an issue. I dont know how to style the browse button that goes with the input type file.

    Code:
    <input type="file" name="myfile" id="myfile" size="20" />
    I cant use class inside the input statement above because it will style the input field itself. I just want to style the browse button only using background-color and color.

    Thanks.
    Last edited by durangod; 10-13-2012 at 02:29 PM.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,866
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • Users who have thanked abduraooft for this post:

    durangod (10-13-2012)


  •  

    Posting Permissions

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