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
    Join Date
    Nov 2010
    Posts
    1,383
    Thanks
    264
    Thanked 32 Times in 31 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 01:29 PM.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,859
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    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
    •