Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Exemplo de custom input file para o post no http://dailydevtips.com/
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Custom Input File</title>
<style type="text/css">
* {margin: 0; padding: 0;}
.input-file {
position: relative;
width: 200px;
height: 30px;
}
label, input {
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 30px;
}
label {
font: bold 12px/2.5 arial;
text-align: center;
text-transform: uppercase;
color: #fff;
background: red;
border-radius: 5px;
}
input {opacity: 0;}
</style>
</head>
<body>
<form action="javascript:;">
<div class="input-file">
<label for="file">Photo upload</label>
<input type="file" name="file" id="file">
</div>
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.