HTML
<div style="position:absolute;top:8;left:12;width:200;height:204;background-color:#888888"></div>
<div style="position:absolute;top:10;left:10;width:200;height:200;background-color:#FFFFFF">The element</div>
You need to play with the size of the shadow. In the above example, the shadow is slightly higher than the element, so the shadow is displayed higher, it is slightly shifted to the left so that the shadow is shown to the right, and it is slightly larger than the element, so the shadow is displayed below.
source
share