HTML and CSS Reference
In-Depth Information
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(
➥
GradientType=0, startColorstr=#88FFFFFF, endColorstr=#00FFFFFF)";
Compared to
CSS
gradients, they're very limited. You can specify only
start and end colors; no additional color stops are available, and they
can only be vertical or horizontal.
Note that if you want to use semitransparent colors in the gradient, you
should also set the background color back to transparent in the rule:
background: transparent;
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(
➥
GradientType=0, startColorstr=#88FFFFFF, endColorstr=#00FFFFFF)";
Otherwise both the background color and the gradient will apply, and
you'll see the gray background through the gradient. The
-ms-filter
property doesn't override an existing
background
property.
IE9 has full support for the CSS standards for box shadows and
rounded corners. IE10 preview releases have included support for
CSS3 gradients. Use conditional comments to provide a specific
stylesheet to IE8 and earlier if you want to support all
versions, or investigate a solution like CSS3 Pie.
CSS3 PIE for easy IE support
CSS3 PIE
takes advantage of another proprietary
IE CSS
extension—
behaviors—to make older versions of
IE
support standard
CSS3
syn-
tax. A
behavior
is a script file that executes as the
CSS
is being applied to
an element. Although there are some performance and security con-
cerns, behaviors offer a convenient way to add
CSS3
support in
IE8 and