Harry Joy
Harry Joy

Reputation: 59650

Gradient effect IE

I'm using following CSS to give gradient effect to the backGround but in IE it doesn't work. how can i make it work in IE8?

background: -moz-linear-gradient(bottom, #000000, #829a90);
background: -webkit-gradient(linear, left bottom, left top, from(#000000),to(#829a90) );

Upvotes: 2

Views: 711

Answers (1)

Harry Joy
Harry Joy

Reputation: 59650

Tested on IE8 and its working:

filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#000000', 
                                  endColorstr='#829a90');

Also there are some limitations in giving gradient effect in IE because it doesn't supports color-stop and radial gradient. Also it's not guaranteed that all the browsers will support gradients thats why you shouldn't rely on gradient.

Upvotes: 3

Related Questions