SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: How to Edit Browse Button?

  1. #1
    SitePoint Guru
    Join Date
    Feb 2007
    Posts
    600
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    How to Edit Browse Button?

    Hi,

    I have edited the submit button however the "file" button which appears as "Browse" doesn't seem to be editable. Can anyone advise how to edit the appearance of the Browse button.


    Code:
    <input type='file' name='filename'  size='20' />
    <input type="submit" value="Upload" class="submit-button" />

  2. #2
    Grüße aus'm Pott
    SitePoint Award Recipient Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    2,439
    Mentioned
    39 Post(s)
    Tagged
    1 Thread(s)
    Hi,

    The styling of file inputs is notoriously difficult.
    There is a good post on what options are available to you here: http://www.quirksmode.org/dom/inputfile.html
    How well do you know your JavaScript from your jQuery?
    Check out SitePoint's latest JavaScript challenge


    My blog

  3. #3
    ¬.¬ shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    8,990
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    You are better off not trying to style form inputs, better off just leaving them to the browsers defaults.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  4. #4
    SitePoint Guru
    Join Date
    Feb 2007
    Posts
    600
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by logic_earth View Post
    You are better off not trying to style form inputs, better off just leaving them to the browsers defaults.
    Hi,

    But it doesn't look nice. Its odd that they so difficult to change.

Bookmarks

Posting Permissions

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