473,226 Members | 1,696 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,226 software developers and data experts.

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 1713
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Mark C | last post by:
I come from a corporate C background and I find style to be important in readability. Especially when multiple people are working on the same code. I have seen 3 way to deal with large bocks of...
13
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div...
5
by: Curtis Gilchrist | last post by:
I am required to read in records from a file and store them in descending order by an customer number, which is a c-style string of length 5. I am storing these records in a linked list. My...
5
by: Ben | last post by:
I have a form for data entry which is in a table. I have a select box to enter a customer name, which takes it's options from the customer database. I have a button to add a new customer. What I...
5
by: johnsuth | last post by:
I want to produce a trivial demonstration of dynamic modification. I thought that pressing a button might change its color. I studied O'Reillys books and successfully created the button with a...
1
by: Charlie | last post by:
Using the HTML file upload control gives you input textbox and a command button. How do you change appearance and caption of button? Setting style attributes doesn't appear to work completely. ...
2
by: ssriram | last post by:
Is there a way to apply style to form field input type="file" (file upload component) If so, how? Thanks, Sunitha Sriram -- ssriram
0
by: clayga | last post by:
Hi, Trying to help my sons do some VB programming. they've got hold of some books with simple program listings but they're all 1980's BASIC (ZX81 et al). The biggest problem I've found so far...
1
by: Armin Gajda | last post by:
Hi, I have the following problem: An input field get a border assigned by a style class (e.g. 2px solid red). When the field gets the focus, we set the border to green. element.style.border...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.