Last active
August 29, 2015 14:06
-
-
Save yevmoroz/26da0b4faf4e8adaa42c to your computer and use it in GitHub Desktop.
<input type="file" /> styling, better way, html valid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Better way to hide you **<input type="file" />** is to wrap it into <label> tag. | |
So it will look like so | |
<label class="file-chose"> | |
<input type="file" /> | |
</label> | |
After that you have to make css it styled to set input's display property to "none": | |
.file-chose input[type="file"] { | |
display:none | |
} | |
And finally style the .file-shose class you like/want |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment