SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Aug 2004
    Location
    India, chennai
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Changing the <input type="file"... element

    Hi,

    Is there a way to change the <input type="file"... element(,i.e., the file chooser element) thru CSS?.Help me please!

  2. #2
    Caveat surfer Buddy Bradley's Avatar
    Join Date
    May 2003
    Location
    Cambridge, UK
    Posts
    2,366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you want to know how to target only that type of input, or what CSS style rules will apply to it?

    To target it, you're going to have to either give it/them or their parent a specific id/class:
    HTML Code:
    <input type="file" class="blue" />
    
    <div id="blue">
    <input type="file" />
    </div>
    There's some information on what effect applying styles to form elements (including file types) here:

    http://456bereastreet.com/archive/20...form_controls/
    http://456bereastreet.com/archive/20...form_controls/

  3. #3
    SitePoint Member
    Join Date
    Aug 2004
    Location
    India, chennai
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks got it,


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
  •