JSFiddle - React, Tailwind, and code Playground
by jancbeck
HTML
<p><a href="#" id="button">Submit</a> with linear gradient + filter</p>
<p><a href="#" id="faux-button">Submit</a> with box-shadow</p>
<h3>The above in IE9:</h3>
<p><img src="http://i.imgur.com/cdpPX.png" /></p>
CSS
body {
background: #ccc;
margin: 50px;
font-family: Arial, sans-serif;
color: #666;
}
h3 {
margin: 20px 0;
color: #222;
font-weight: bold;
font-size: 20px;
}
a {
text-decoration: none;
text-shadow: 0 1px 0 rgba(255,255,255,0.5);
display: inline-block;
margin-bottom: 20px;
margin-right: 20px;
padding: 7px 20px 5px;
-webkit-border-radius: 20px;
-moz-border-radius: 20px;
border-radius: 20px;
border: 1px solid #aaa;
color: #333;
font-weight: bold;
}
#button {
box-shadow: 0 1px 0 rgba(255,255,255, 0.3), inset 0 1px 0 rgba(255,255,255, 0.3);
background-color: #bfbfbf;
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#adadad',GradientType=0 ); /* IE6-9 */
background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#adadad)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #eee, #adadad); /* Chrome 10+, Saf5.1+, iOS 5+ */
background-image: -moz-linear-gradient(top, #eee, #adadad); /* FF3.6 */
background-image: -ms-linear-gradient(top, #eee, #adadad); /* IE10 */
background-image: -o-linear-gradient(top, #eee, #adadad); /* Opera 11.10+ */
background-image: linear-gradient(top, #eee, #adadad);
}
#faux-button {
background-image: none !important;
background-color: #DDD;
filter: none !important;
-webkit-box-shadow: inset 0 -8px 10px rgba(0,0,0,0.15), 0 1px 0 rgba(255,255,255, 0.3), inset 0 1px 0 rgba(255,255,255, 0.3);
-moz-box-shadow: inset 0 -8px 10px rgba(0,0,0,0.15), 0 1px 0 rgba(255,255,255, 0.3), inset 0 1px 0 rgba(255,255,255, 0.3);
box-shadow: inset 0 -8px 10px rgba(0,0,0,0.15), 0 1px 0 rgba(255,255,255, 0.3), inset 0 1px 0 rgba(255,255,255, 0.3);
}