So, I played with both shadows, I did something similar recently, and it worked perfectly. Then he suddenly stopped working for no apparent reason!
What I'm trying to do is to have a simple div box with double shadows at the bottom to make it look bent.
If you check this in jfiddle http://jsfiddle.net/TJuDu/ , you will see all the code I made. The problem is stacking the: before and: after elements, they are positioned correctly, but the stacking is wrong, the shadows are behind div.layout, when they should be displayed explicitly behind the .box div. If I remove the z-index value, I see shadows located above the div.box.
The fact is that I did just that on another page, and it worked, and suddenly it stopped working on this page, and I did it with this example.
source share