Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No styles on 'File Input' form element #270

Closed
justinthiele opened this issue Sep 20, 2011 · 10 comments
Closed

No styles on 'File Input' form element #270

justinthiele opened this issue Sep 20, 2011 · 10 comments

Comments

@justinthiele
Copy link

The styles seems to be broken on the 'File Input' form element.

Here's screenshots from the documentation page:

Firefox
Firefox

Chrome
Chrome

@stloyd
Copy link

stloyd commented Sep 20, 2011

This issue is invalid. Input with type="file" cannot be styled.

@justinthiele
Copy link
Author

Right on. Thanks. Closing :)

@jankeromnes
Copy link

The index page references to an input-file class that doesn't exist though: https://github.com/twitter/bootstrap/blob/gh-pages/index.html#L1165

@MastaBaba
Copy link

Also, there's plenty of content out there that shows that file upload boxes most certainly can be styled. The Blueimp file upload pluging/library, which runs on top of jquery and uses Bootstrap, does just that.

There's no practical reason why file upload buttons styling can not be part of Bootstrap.

@lukmdo
Copy link

lukmdo commented Jun 4, 2012

@stloyd input[type="file"] Input with type="file" cannot be styled AFAIC bootstrap was using file based rules in v1.4.0 but dropped them ... if you mean ...should not be styled then its a different thing.

@findchris
Copy link

What @lukmdo said. Seems like bootstrap's bastard form element.
+1 for adding in some file field styling, at least via a jQuery plugin

@railsforcharity
Copy link

+1

2 similar comments
@fizerkhan
Copy link

+1

@itdjship
Copy link

+1

@robdodson
Copy link

If you set the height to 26px it fixes it in Firefox. Bootstrap explicitly sets it to 30px. As soon as you go 1px over 26, firefox drops the rounded corners and makes the button look all wacky like that. Just checked the 26px fix in Chrome, FF and IE9 and all looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants