1

Can someone teach me or give me a link for my problem?

I wanted to customize my form "file" --> for uploading.
How can I customize it?

.classfile {
css codes....
}

<input type="file" name="name" class="classfile" />

If I do that way the text box and button of form will be affected. What is the other way to customize that?

2
  • not getting you can plz explain more Commented Jun 11, 2010 at 8:44
  • Are you looking for the CSS selector input[type="file"]? Commented Jun 11, 2010 at 8:46

2 Answers 2

2

You can't style a

<input type="file">

Just with CSS. Take a look here for a great trick : http://www.quirksmode.org/dom/inputfile.html

Sign up to request clarification or add additional context in comments.

Comments

0

The short answer: You can't and you shouldn't. This is done purposely, to stop tricking people with this security/privacy critical element.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.