I have this code below which creating a background radial circle gradient.
it’s working well on all browsers except IE (not working even on IE9)
what should I add to the css in order for it to work also on IE9 and IE8?
The code:
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css" media="screen">
html {
background-color: #eee;
height:768px;
}
div {
width: 96%;
height: 800px;
padding: 10px;
margin:0 auto;
}
div.circle {
background-image: radial-gradient(center center, circle cover, #352e24, #1a160d);
background-image: -o-radial-gradient(center center, circle cover, #352e24, #1a160d);
background-image: -ms-radial-gradient(center center, circle cover, #352e24, #1a160d);
background-image: -moz-radial-gradient(center center, circle cover, #352e24, #1a160d);
background-image: -webkit-radial-gradient(center center, circle cover, #352e24, #1a160d);
}
</style>
</head>
<body>
<div class="circle"></div>
</body>
</html>
-ms-linear-gradientline. Gradients are supported unprefixed in IE10 and they are not supported at all in IE9 and older.farthest-cornerinstead ofcover. And that’s the default value, so you can leave it out.centeris the default value for position (so you can leave that out as well).What should you do for IE9 and older? Not much. Fallback on:
So that code should become: