CSS box shadow generator
Adjust the sliders and copy the box-shadow CSS.
Ad space
How box-shadow works
The value is: horizontal offset, vertical offset, blur radius, spread radius and color. Positive offsets move the shadow right and down. Blur softens the edge, spread grows or shrinks the shadow, and the keyword inset draws it inside the box.
Soft, low-opacity shadows such as 0 4px 12px at 15-25% opacity look natural. Hard black shadows look heavy.
FAQ
What is the difference between blur and spread?
Blur softens the edge. Spread makes the whole shadow bigger or smaller before blurring.
Can I use several shadows?
Yes. Separate them with commas in your CSS.
Why use rgba?
It lets the shadow be partly transparent so the background shows through.