469,271 Members | 1,647 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

Style File Input

Hi,

Does anyone knows how to style and input of type file with JQuery?

I want to use an image as the button or maybe a simple normal input
styled with CSS.
I also want to style the input where the path is ... I want it to have
a grey background and no border.

Any idea of how to accomplish this?

Thanks,
Miguel
Aug 28 '08 #1
2 1639
shapper wrote:
Does anyone knows how to style and input of type file with JQuery?
No.
I want to use an image as the button or maybe a simple normal input
styled with CSS.
Rule of thumb: What CSS cannot do, no script can do.
I also want to style the input where the path is ... I want it to have
a grey background and no border.
You can't always have what you want.

BTW: jQuery is junk, and there is no indication that this could change.
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Aug 28 '08 #2
shapper meinte:
Hi,

Does anyone knows how to style and input of type file with JQuery?
"Can I style file inputs?" - use Google. Has been asked frequently here
and in neighboring groups.
I want to use an image as the button or maybe a simple normal input
styled with CSS.
I also want to style the input where the path is ... I want it to have
a grey background and no border.

Any idea of how to accomplish this?
To make it short and easy: You can't. You can hide it behind a faux
input, but that's it.

Gregor
--
http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie
http://web.gregorkofler.com ::: meine JS-Spielwiese
http://www.image2d.com ::: Bildagentur für den alpinen Raum
Aug 28 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Mark C | last post: by
5 posts views Thread by Curtis Gilchrist | last post: by
5 posts views Thread by johnsuth | last post: by
1 post views Thread by Armin Gajda | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.