I have a button created with CSS that works great in Firefox and Chrome but not IE…
Not sure what is wrong but I assume there is some missing or wrong code. Here is my code:
.red-button{
width: 400px;
height: 100px;
line-height: 100px;
color: white;
text-decoration: none;
font-size: 20px;
font-family: "ff-dagny-web-pro", Helvetica, Arial, sans-serif;
font-weight: bold;
display: block;
text-align: center;
position: relative;
border: 1px double black;
border-radius: 10px;
background-image: -webkit-gradient(linear, center top, center bottom,
from(#e80000), to(#840000));
background-image: -webkit-linear-gradient(top, #e80000, #840000);
background-image: -moz-linear-gradient(top, #e80000, #840000);
background-image: -o-linear-gradient(top, #e80000, #840000);
background-image: -ms-linear-gradient(top, #e80000, #840000);
background-image: linear-gradient(to bottom, #e80000, #840000);
text-shadow: 1px 1px 1px black;
-webkit-box-shadow: 0 1px 5px rgba(0,0,0,0.75);
-moz-box-shadow: 0 1px 5px rgba(0,0,0,0.75);
box-shadow: 0 1px 5px rgba(0,0,0,0.75);
}
I want this to work in IE 9 and IE 8. While I know properties like border radius will not work in IE 8 I do want the gradients to work in IE 8 and 9.
Please Help, Thanks!
I found a site that creates the code and is very useful and handy.
Here is the correct code:
The site has a note about IE 9:
IE 9 code with full multi-stop gradients with IE9 (using SVG):