javascript - Styling an input type="file" -


i have read several places.

i have tried method found here: http://www.quirksmode.org/dom/inputfile.html

i not work. tried css/html method , works beautifully in firefox, chrome, safari, , opera (all latest versions) not in (you guessed it) ie8.

it looks fine, when single click it, doesn't work. if double click it works.

any ideas how work single click?

currently using ie conditional comments tell users ie double click select button. site in design , not live users yet , solve issue before goes live if possible.

i think found 2 solutions problem. using: filter:alpha(opacity: 0) on .file class, hiding actual "browse..." button see in upload controls.

the first solution use conditional set css replace fancy "select" image normal yet styled "browse" button when user using ie.

the second 1 play size of fileattachment input , hidden "browse..." button fit in position of "select" image. there have make sure z-index property of button higher 1 of image.

let me know if these solutions solve needs.

:d


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -