Make box shadows look the same in IE and other browsers

Posted Over 13 years ago. Visible to the public.

The box shadows created rendered in IE by CSS3PIE Show archive.org snapshot look darker and are blurred differently than in browsers that render box-shadow natively.

If possible, try to be OK with this. If not, make an IE-only stylesheet that uses a different color and blur radius:

// Real browsers:
+box_shadow("0 4px 10px #bbb")

// IE with PIE:
+box_shadow("0 5px 15px #888")

We should try to package this solution in a neat way so we don't need different stylesheets.

See also this cross-browser box-shadow comparison Show archive.org snapshot page.

Henning Koch
Last edit
Almost 13 years ago
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2010-09-07 09:31)