Skip to content

Instantly share code, notes, and snippets.

@blackneck
Created October 30, 2015 08:01
Show Gist options
  • Save blackneck/ed8b5f68ae428d086a16 to your computer and use it in GitHub Desktop.
Save blackneck/ed8b5f68ae428d086a16 to your computer and use it in GitHub Desktop.
.btn-file {
position: relative;
overflow: hidden;
}
.btn-file input[type=file] {
position: absolute;
top: 0;
right: 0;
min-width: 100%;
min-height: 100%;
font-size: 100px;
text-align: right;
filter: alpha(opacity=0);
opacity: 0;
outline: none;
background: white;
cursor: inherit;
display: block;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment