You cannot do this with ONE div
.
EDIT
box-shadow
does not allow right and left shadows at the same time.
There is a trick, though...read on.
The rule takes four values:
- defines the horizontal offset of the shadow. + value for a right shadow and - value for a left shadow.
- defines the vertical offset. + value for a bottom shadow and - value for a top shadow.
- defines the blur distance
- defines the spread
That is all true. However, after some tests I found you can layer shadows.
All you need to do is separate the values with a comma.
So, for a left, right, and bottom shadow on one div, you can do this
box-shadow: -5px 5px 3px black, 5px 5px 3px black;
Example: http://jsfiddle.net/jasongennaro/HWCzJ/1/
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…