SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: input type=file

  1. #1
    SitePoint Zealot maileen's Avatar
    Join Date
    Apr 2006
    Posts
    158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question input type=file

    Hi,

    i use an input type=file to allow users to upload file to database.

    I would like to know how can i setup the length of the field where will be written the file name ?
    in fact, how can i set a particular design (length, color, font,..) for the field and the button, but separately ?

    thanks a lot,

    A.

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    File selector fields are notoriously difficult to style with CSS, so the best course of action is probably to accept that and get on with life.

    You can try to set the overall width of the field using the width property. That width will include the Browse button, though.

    Opera 9 honours this setting, as does IE6 (although it makes it slightly wider than specified). Firefox 2.0 ignores it, though.
    Birnam wood is come to Dunsinane


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
  •