SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Guru
    Join Date
    Feb 2007
    Posts
    731
    Mentioned
    2 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
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    6,051
    Mentioned
    219 Post(s)
    Tagged
    12 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

  3. #3
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    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
    731
    Mentioned
    2 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
  •