Style File Input

This is a discussion on Style File Input within the Javascript forums in Programming Languages category; 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...

Go Back   Application Development Forum > Programming Languages > Javascript

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-27-2008, 09:47 PM
shapper
Guest
 
Default 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
Reply With Quote
  #2  
Old 08-28-2008, 03:39 AM
Thomas 'PointedEars' Lahn
Guest
 
Default Re: Style File Input

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
Reply With Quote
  #3  
Old 08-28-2008, 04:03 AM
Gregor Kofler
Guest
 
Default Re: Style File Input

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
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 04:43 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.