free

Box Shadow Generatorfree

Generate CSS box-shadow with live visual preview.

box-shadow: 4px 4px 8px 0px rgba(0, 0, 0, 0.3);

How to use Box Shadow Generator

1

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.

2

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.

3

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.

4

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.

5

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).

6

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.

7

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.

8

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.

Frequently Asked Questions

Related Tools