Box Shadow Generator — best
Generate CSS box-shadow with live visual preview.
How to use Box Shadow Generator
Open the Box Shadow Generator
Navigate to the tool and locate the main preview panel on the right side. You'll see a white box displaying your shadow in real-time as you make adjustments.
Adjust Horizontal Offset
Find the 'X Offset' slider on the left control panel. Drag it left (negative values) or right (positive values) to move the shadow horizontally. Values range from -100px to 100px.
Adjust Vertical Offset
Use the 'Y Offset' slider below X Offset to control vertical shadow position. Positive values move the shadow down, negative values move it up.
Set Blur Radius
Drag the 'Blur' slider to control shadow softness. Higher values (0-100px) create softer, more diffused shadows. Lower values create sharper edges.
Configure Spread Radius
Adjust the 'Spread' slider to expand or contract the shadow size. Positive values enlarge the shadow area, negative values shrink it (-50px to 50px range).
Choose Shadow Color
Click the color picker button labeled 'Color' to open the color palette. Select your desired shadow color or enter a hex code directly in the input field.
Adjust Shadow Opacity
Use the 'Opacity' slider to control shadow transparency. Values range from 0% (invisible) to 100% (fully opaque). Typical values are 20-50% for realistic shadows.
Copy CSS Code
Click the 'Copy' button below the generated code to copy the complete box-shadow CSS property to your clipboard. Paste directly into your stylesheet.