Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Style File Input

0 views
Skip to first unread message

shapper

unread,
Aug 27, 2008, 9:47:44 PM8/27/08
to
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

Thomas 'PointedEars' Lahn

unread,
Aug 28, 2008, 3:39:05 AM8/28/08
to
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

Gregor Kofler

unread,
Aug 28, 2008, 4:03:28 AM8/28/08
to
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

0 new messages