Note that there are some explanatory texts on larger screens.

plurals
  1. POAdding style to file upload button in css
    text
    copied!<p>I have a text field and button with following css:</p> <p>JS fiddle link : <a href="http://jsfiddle.net/Tdkre/" rel="noreferrer">http://jsfiddle.net/Tdkre/</a> </p> <pre><code>.submit { -moz-box-shadow:inset 0px 1px 0px 0px #cae3fc; -webkit-box-shadow:inset 0px 1px 0px 0px #cae3fc; box-shadow:inset 0px 1px 0px 0px #cae3fc; background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #79bbff), color-stop(1, #4197ee) ); background:-moz-linear-gradient( center top, #79bbff 5%, #4197ee 100% ); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#79bbff', endColorstr='#4197ee'); background-color:#79bbff; -moz-border-radius:6px; -webkit-border-radius:6px; border-radius:6px; border:1px solid #469df5; display:inline-block; color:#ffffff; font-family:arial; font-size:14px; font-weight:bold; padding:5px 14px; text-decoration:none; text-shadow:1px 1px 0px #287ace; cursor:pointer; } .submit:hover { background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #4197ee), color-stop(1, #79bbff) ); background:-moz-linear-gradient( center top, #4197ee 5%, #79bbff 100% ); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#4197ee', endColorstr='#79bbff'); background-color:#4197ee; } .submit:active { position:relative; top:1px; } .text-input { padding: 6px; font-size: 13px; border: 1px solid #d5d5d5; color: #333; border-radius: 4px 4px 4px 4px !important; } &lt;form&gt; &lt;input type="text" class="text-input" size="40"/&gt; &lt;input type="button" value="Upload" id="upload" class="submit"/&gt; &lt;/form&gt; </code></pre> <p>I want to add the same style to the file upload input type. I am a css beginner. How can i use this style to file upload button? </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload