css - styling a input type="file" -


this question has answer here:

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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -