How to use CSS Box Shadow Generator
- Adjust the shadowMove the sliders for horizontal and vertical offset, blur and spread.
- Choose colour and opacityPick the shadow colour and how strong it is, or switch to an inner shadow.
- Copy the CSSCopy the box-shadow rule and paste it into your stylesheet.
Common uses
- Give cards and buttons a soft, modern shadow
- Create an inset effect for input fields
- Match a shadow from a design mock-up
Frequently asked questions
How do I use CSS Box Shadow Generator?
1. Adjust the shadow: Move the sliders for horizontal and vertical offset, blur and spread. 2. Choose colour and opacity: Pick the shadow colour and how strong it is, or switch to an inner shadow. 3. Copy the CSS: Copy the box-shadow rule and paste it into your stylesheet.
What is the difference between blur and spread?
Blur softens the edge of the shadow. Spread makes the shadow larger or, with a negative value, smaller than the element.
Why use a low opacity?
Soft shadows of about 10–25% opacity look more natural than solid black.
Does box-shadow affect layout?
No. Shadows are drawn outside the layout and do not move other elements.