Yes, possibly with the pseudo-elements before
and after
.
You position the two absolutely, you rotate them, say, 5deg (in fact, one with 5 and the other with -5), you give them each box-shadow
, and you adjust the propagation value so that the shadow is smaller than the box itself. And you set the z-index
so that they appear behind your div.
demo link http://dabblet.com/gist/2789364
relevant piece of code
.box:before, .box:after { bottom: 0; min-height: 45%; width: 65%; border-radius: 3px; box-shadow: 0 0 10px rgba(204,204,204,.4); position: absolute; z-index: -1; background: rgba(204,204,204,.4); content: ''; } .box:before { left: 5px; transform: rotate(-5deg); } .box:after { right: 5px; transform: rotate(5deg); }
source share