Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Modifying file type input with css and make it more attractive

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #148644
    sarthak
    Participant

    Guys i’m bit confused in editing <input type="file">.
    There are lots of examples but what will a best method using only css ????

    #148647
    Paulie_D
    Member

    Do you mean styling it?

    You can select it with input[type="file"].

    Grabbing the button though is much difficult if not impossible as browsers don’t want you to mess with it.

    What specifically are you trying to do?

    http://www.quirksmode.org/dom/inputfile.html

    http://www.appelsiini.net/projects/filestyle

    #148659
    sarthak
    Participant

    actually i want to style it like that in
    Pinterest
    some what like that and if possible using Css only

    #148660
    Paulie_D
    Member

    Which?

    The sign-up buttons?

    They are just buttons…not input file types

    You can style a <button> any way you like.

    But…as I said, you can’t select the input[type=file] button using CSS. You have to use fake elements orJS to modify the whole thing.

    #148661
    sarthak
    Participant

    oh So we can’t edit an input[type=file] button with only Css fine

    #148703
    Ed
    Participant

    It doesn’t look like you can modify the appearance of an element, unfortunately.

    Other options include a jQuery plugin (Google for “jquery file upload plugin”), or even do it in vanilla JS (i.e. Dropzone) to offer an alternative solution. Dropzone is especially cool because it lets you do drag & drop uploading.

    #148712
    sarthak
    Participant

    Thanx Ed i think that jQuery plugins are better option .
    And i think i should use this one http://www.dropzonejs.com/

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘CSS’ is closed to new topics and replies.