
Untitled
By: a guest on Jan 28th, 2012 | syntax:
None | size: 0.47 KB | hits: 13 | expires: Never
<style type="text/css">
.file {
position: relative;
width: 12em;
overflow: hidden;
border: 1px solid black;
}
.file label {
width: 100%;
color: #00f;
text-decoration: underline;
}
.file input {
position: absolute;
top: 0;
right: 0;
font-size: 10em;
cursor: pointer;
opacity: 0;
-moz-opacity: 0;
filter: alpha(opacity=0);
}
</style>
<div class="file">
<label>Upload a file</label>
<input type="file">
</div>