I am using the following code, but now I don't know if I need to use both of these:
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#46494F', endColorstr='#141A1E',GradientType=0);
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#46494F', endColorstr='#141A1E',GradientType=0)";}
What's making me more confused is that VS2010 reports the following message "Validation CSS 2.1 - filter is not a known property name."
Has anyone experienced similar issues using these? How about with IE9 and above? Are these still used or is that browser using new CSS standards?
filter
and -ms-filter
are proprietary CSS properties invented by Microsoft for use with IE only, so the validation messages aren't an issue.
filter
is used for IE older than 8, while IE8+ adopts the prefixed version, -ms-filter
.