You should use the pseudo-css :before and :after selector.
There's a good description and guide to this process here: CSS Drop Shadows
Demonstration of effects here: Demo page
If you use SASS / SCSS over here to capture mixin to automatically generate an effect for you.
source share