Applying style to browse button.

Discussion in 'Javascript' started by akshakeel@gmail.com, Jul 31, 2006.

  1. Guest

    Hi all,
    Is it possible to apply style to browse button, the code for which
    is,

    <input type="file">

    I want to add a background image to the "Browse" button. (using css)
    But the problem im facing is that, the image comes to the textbox also.

    Please give me a hint on how to apply background image only to the
    button.

    Regards,
    Shakeel
    , Jul 31, 2006
    #1
    1. Advertising

  2. Randy Webb Guest

    said the following on 7/31/2006 3:16 AM:
    > Hi all,
    > Is it possible to apply style to browse button, the code for which
    > is,
    >
    > <input type="file">
    >
    > I want to add a background image to the "Browse" button. (using css)
    > But the problem im facing is that, the image comes to the textbox also.
    >
    > Please give me a hint on how to apply background image only to the
    > button.


    <URL: http://www.cs.tut.fi/~jkorpela/forms/file.html#present>

    --
    Randy
    comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
    Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
    Randy Webb, Jul 31, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. soulcode
    Replies:
    1
    Views:
    412
    Jason DeFontes
    May 8, 2004
  2. stef
    Replies:
    6
    Views:
    913
  3. Replies:
    1
    Views:
    453
    Andrew Thompson
    Aug 13, 2006
  4. Bobby Edward
    Replies:
    1
    Views:
    623
    Mike Lopilato
    Oct 10, 2009
  5. Replies:
    0
    Views:
    204
Loading...

Share This Page