Is it possible to chain -ms-filters in CSS?

Posted by Jakub Hampl on Stack Overflow See other posts from Stack Overflow or by Jakub Hampl
Published on 2010-05-09T00:43:38Z Indexed on 2010/05/09 0:48 UTC
Read the original article Hit count: 279

Filed under:
|
|
|

Does anyone know of a way to chain the proprietary filter properties in CSS.

For example I have a div.example and I want to give it a background gradient and a drop shadow. So I'd like to do something like this:

div.example {
  /* gradient */
  filter: progid:DXImageTransform.Microsoft.Gradient(startColorstr=#cb141e78,endColorstr=#cb1dde78);
  /* shadow */
  filter: progid:DXImageTransform.Microsoft.dropShadow(color=00143c, offX=0, offY=3, positive=true);
}

Except this will of course leave only the drop shadow. Anyone know a good workaround?

© Stack Overflow or respective owner

Related posts about css

Related posts about internet-explorer