Wednesday, 8 June 2016

How to use Linear Gradient in IE9

IE9 doesn't have support Linear Gradients so if you want to use something like Linear Gradient, You can follow this trick.

background: #fff;
background: -moz-linear-gradient(#fff, #000);
background: -webkit-linear-gradient(#fff, #000);
background: -o-linear-gradient(#fff, #000);
background: -ms-linear-gradient(#fff, #000);/*For IE10*/
background: linear-gradient(#fff, #000);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#ffffff', endColorstr='#000000');/*For IE7-8-9*/ 

This trick simply does same as linear gradient, it's only feature of IE. 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home