Skip to content Skip to sidebar Skip to footer

IE9 Gradient Using -ms

Anyone know how I can make this work in IE9. The top one works great in firefox but when I add the second one for IE9 it doesn't work. Any ideas what I'm doing wrong. backgrou

Solution 1:

Try this out - Ultimate CSS Graident Generator

Click the "IE9 Support" checkbox in the bottom right of the page.


Solution 2:

As stated in the other answers, the -ms prefix is for IE10+. IE9 drops support for the older filter syntax as well, so you can't actually render any gradients with pure CSS.

One solution to this is use SVG gradients for the background-image property. http://css3wizardry.com/2010/10/29/css-gradients-for-ie9/


Solution 3:

IE9 doesn't support gradients - only IE10: http://caniuse.com/#search=gradient

Instead, I'd recommend using something like this to speed up coding in IE: http://www.bradshawenterprises.com/blog/2010/dynamically-drawing-gradients-with-php/

I usually use this to generate a png of the gradient for me, then set that as the background first, then have another property after with the CSS grad. This lets it work in all older browsers that don't support gradients, not just IE.

It also meant that when the spec changed, my sites still worked.

Alternatively, use http://css3pie.com/, though I don't really like it for grads.


Post a Comment for "IE9 Gradient Using -ms"