Wiika
Wiika

Reputation: 734

Equivalant of this gradient code in ie css filter

i need an equivalent or an alternative for this code in internet explorer using the filter method

background: -moz-linear-gradient(center bottom , rgb(132, 133, 132) 0%, rgb(35, 35, 35) 49%, rgb(104, 104, 104) 100%) repeat scroll 0% 0% transparent;

the most important thing in the code is the points ( 0% - 49% - 100% ) i believe that the filter method doesn't have points and doesn't accpect more than two parms for the colors ,

Is there a way to do it in filter or a javascript script for that ? Thanks.

Upvotes: 2

Views: 616

Answers (2)

Ali Habibzadeh
Ali Habibzadeh

Reputation: 11568

filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#0000FF', EndColorStr='#000000')"

Upvotes: 3

Justin Johnson
Justin Johnson

Reputation: 31300

See http://msdn.microsoft.com/en-us/library/ms532997%28VS.85%29.aspx

filter: progid:DXImageTransform.Microsoft.Gradient(sProperties);

Upvotes: 1

Related Questions