2009/6/30 Dave Sherohman <[email protected]>:
> I've got a file upload control that I'd like to see fill available space
> and google's not finding anything for me that looks terribly useful
> other than lots of people saying that file input controls and CSS don't
> get along very well.
>

Bear in mind that some browsers, especially on non-Windows platforms,
have file inputs that don't look anything like you're probably
expecting - i.e. they aren't a text input field with a button next to
it. That's the way it was implemented in the earliest browsers to
support forms (early '90s), but there's no reason why it has to be
that way.

Roger Johansson has a large collection of screenshots at
<http://www.456bereastreet.com/lab/styling-form-controls-revisited/file-select/>.
In particular, consider what a standard Safari <input type="file"> is
going to look like stretched to 100% width:
<http://www.456bereastreet.com/lab/styling-form-controls-revisited/file-select/#safari2>.
(It may not be clear from that screenshot, but when a file is
selected, its filename, not including the full path, will take the
place of the text "No file selected".) I think it's probably going to
have a lot of white space around its two components...

Regards,

Nick.

-- 
Nick Fitzsimons
http://www.nickfitz.co.uk/
______________________________________________________________________
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/

Reply via email to