css - styling a input type="file" -
this question has answer here:
- styling input type=“file” button 36 answers
- style input type file? [duplicate] 6 answers
i'm trying align text have same padding choose file button.
input[type='file'] { background: #000; border-radius: 5px; color: #fff; font-family: "marmellata", sans-serif; padding: 6px 10px 14px 17px; font-size: 20px; margin-bottom: 20px; width: 240px; vertical-align: top; margin-top: 0px; }
<input name="t1" class="imgupload" type="file" accept="image/*" capture="camera">
why don't use the following ?
input.imgupload { background: #000; border-radius: 5px; color: #fff; font-family: "marmellata", sans-serif; padding: 6px 10px 14px 17px; font-size: 20px; margin-bottom: 20px; width: 240px vertical-align: top; margin-top: 0px; }
anyways class has stronger weight attribute selector.
Comments
Post a Comment