Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Change "File Field's" Button Color

Change "File Field's" Button Color

Scheduled Pinned Locked Moved Web Development
htmlquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    UB
    wrote on last edited by
    #1

    How do I change the color of the button that comes with "File Field" Html control. Thanks. UB You may stop this individual, but you can't stop us all... after all, we're all alike. +++Mentor+++

    A P 2 Replies Last reply
    0
    • U UB

      How do I change the color of the button that comes with "File Field" Html control. Thanks. UB You may stop this individual, but you can't stop us all... after all, we're all alike. +++Mentor+++

      A Offline
      A Offline
      Anonymous
      wrote on last edited by
      #2

      you can do it through css thankx

      1 Reply Last reply
      0
      • U UB

        How do I change the color of the button that comes with "File Field" Html control. Thanks. UB You may stop this individual, but you can't stop us all... after all, we're all alike. +++Mentor+++

        P Offline
        P Offline
        Paul Watson
        wrote on last edited by
        #3

        Unfortuanately you cannot. They are pretty strict about letting you fiddle with the file input to stop dodgy okes from sniping files off your machine. Why they won't let you style it I am not so sure. You can modify the textbox portion of it, but not the button. [Edit] Actually, I lie. You can, to a degree. background-color for instance does not work on the button bit but border does. Bit of pot luck. [/Edit] regards, Paul Watson Bluegrass South Africa Christopher Duncan quoted: "...that would require my explaining Einstein's Fear of Relatives" Crikey! ain't life grand? Einstein says...

        U 1 Reply Last reply
        0
        • P Paul Watson

          Unfortuanately you cannot. They are pretty strict about letting you fiddle with the file input to stop dodgy okes from sniping files off your machine. Why they won't let you style it I am not so sure. You can modify the textbox portion of it, but not the button. [Edit] Actually, I lie. You can, to a degree. background-color for instance does not work on the button bit but border does. Bit of pot luck. [/Edit] regards, Paul Watson Bluegrass South Africa Christopher Duncan quoted: "...that would require my explaining Einstein's Fear of Relatives" Crikey! ain't life grand? Einstein says...

          U Offline
          U Offline
          UB
          wrote on last edited by
          #4

          Hi Paul, I just found a dirty way to do this. I put a normal button, a textbox and a file input field. Then put some java script and managed to call the file input's click event from the button's click event, so when I clicked the button the open dialog box would appear, and it worked!. Then the getting the text in to the text box from file input was easy. Now I can do what ever the decorations to the poor button :) Thanks for your help and your time. :) UB You may stop this individual, but you can't stop us all... after all, we're all alike. +++Mentor+++

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups