To use z-index to put the box-shadow over the box, set the z-index of the box to 0, and the z-index of the box-shadow to 1, or any value greater than zero, like this:
.box { z-index:0; } .box-shadow { z-index:1; }