Safari box shadow inset support

Posted by codedude on Stack Overflow See other posts from Stack Overflow or by codedude
Published on 2010-05-23T01:29:37Z Indexed on 2010/05/23 1:30 UTC
Read the original article Hit count: 458

Filed under:
|
|

I have a box in one of my websites that has a these property:

-moz-box-shadow:inset 0 0 50px #ecf4de;
-webkit-box-shadow:inset 0 0 50px #ecf4de;
box-shadow:inset 0 0 50px #ecf4de;

This gives the box a nice gradient towards the center. However, Safari does not support the "inset" property and IE doesn't support box-shadow at all. I can't use an image for this because the height of this box changes for each situation.

I don't want to use 3 images, (one for the top, a repeating one for the middle and one for the bottom), as this can get very messy code.

So what I'm asking is if there is any way to produce the box shadow in all browsers.

© Stack Overflow or respective owner

Related posts about css

Related posts about safari