Skip to content Skip to sidebar Skip to footer

CSS - Gradient Set For IE

How do I set gradient for IE, because I was trying but without any luck, I got it working on chrome, firefox, opera but not in IE html, body { height: 100%; background-

Solution 1:

You have no code in there that IE supports. Use colorzilla to create cross-browser gradients:

background: #bde25e; /* Old browsers */
background: -moz-linear-gradient(top, #bde25e 2%, #8bb31d 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(2%,#bde25e), color-stop(100%,#8bb31d)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #bde25e 2%,#8bb31d 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #bde25e 2%,#8bb31d 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #bde25e 2%,#8bb31d 100%); /* IE10+ */
background: linear-gradient(to bottom, #bde25e 2%,#8bb31d 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#bde25e', endColorstr='#8bb31d',GradientType=0 ); /* IE6-9 */

Solution 2:

You have to use this in IE,

filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#BDE25E ', endColorstr='#8BB31D ');

Post a Comment for "CSS - Gradient Set For IE"