About Box Shadow Generator
The box-shadow property takes up to five values: horizontal offset, vertical offset, blur radius, spread radius and colour, plus an optional inset keyword that draws the shadow inside the element rather than outside it.
Spread is the one people skip, and it is the most useful. A positive spread grows the shadow before blurring, which is how you make a soft halo; a negative spread shrinks it, which is how you get a tight shadow that hugs the element and reads as a thin object rather than a floating slab.
Real depth comes from stacking. Separate several shadows with commas and the browser paints them in order — a small, darker layer for the contact shadow and a large, faint layer for the ambient one. That combination is what makes an element look like it is sitting above the page instead of having a grey rectangle behind it.
How to generate a box shadow
Adjust the first layer
Set the offset, blur and spread with the sliders. The preview updates as you drag.
Add a second layer
Stack a wider, fainter shadow behind the first. Two layers is what makes depth look real rather than pasted on.
Copy the CSS
The complete box-shadow declaration, including every layer, appears below the preview.