Re: [css-d] Styling input[type=file]

2008-03-21 Thread Rahul Gonsalves
Anas,

On 21-Mar-08, at 2:30 PM, Anas R. wrote:
 Is there any way to style input[type=file]? both the text field  
 and the button?

These seem to be well written articles on the topic:

[1] http://www.quirksmode.org/dom/inputfile.html - requires JS
[2] 
http://shauninman.com/archive/2007/09/10/styling_file_inputs_with_css_and_the_dom
 
  - also requires JS


Hope those help,
  - Rahul.
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Styling input[type=file]

2008-03-21 Thread Jukka K. Korpela
Anas R. wrote:

 Is there any way to style input[type=file]? both the text field and
 the button?

Maybe. This is a wide question, but you can apply various CSS properties 
to such an element and see what happens in different browsers. The 
specifications don't really tell much about what _should_ happen. For 
example, if you set background properties, should they apply to the 
filename box's content, the content of the Browse button, both of them, 
or _their_ background (i.e. the background of the box inside which they 
appear)?

So what would you like to do? Any question that involves distinguishing 
the text field and the button (i.e., applying some rule to only of them) 
has probably the answer No, you can't specify that, but browsers might 
actually apply some declarations to one of them only.

Some notes on rendering file input widgets:
http://www.cs.tut.fi/~jkorpela/forms/file.html#present

Jukka K. Korpela (Yucca)
http://www.cs.tut.fi/~jkorpela/ 

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/