I want to apply a gradient background color to my div
.
For IE I have used the property:
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fad59f', endColorstr='#fa9907')
It's working in IE9 and IE8. But not working in IE7.
What should I do to see in IE?
Here is a JSFiddle: http://jsfiddle.net/xRcXL/2/
You didn't specify a
GradientType
:source: http://www.colorzilla.com/gradient-editor/
This Should Be work:
Otherwise generate using this and get the code.
http://www.colorzilla.com/gradient-editor/
In testing IE7/8/9 I was getting an
ActiveX
warning trying to use this code snippet:After removing this the warning went away. I know this isn't an answer, but I thought it was worthwhile to note.
Having seen your fiddle in the comments the issue is quite easy to fix. You just need to add
overflow:auto
or set a specific height to yourdiv
. Live example: http://jsfiddle.net/tw16/xRcXL/3/