CSS & Design

How to Generate a CSS Box Shadow

Step-by-step guide to building multi-layer box shadows visually using the DevHexLab Box Shadow Generator.

Tool Used

Box Shadow Generator

Open tool
1

Open the Box Shadow Generator

Navigate to /tools/css/box-shadow-generator.

2

Adjust the shadow sliders

Control horizontal offset, vertical offset, blur radius, spread radius, and color. The element preview updates in real time.

3

Add multiple layers

Click Add Layer to stack shadows for richer effects like inner glow combined with a drop shadow.

4

Copy the CSS

Click Copy CSS to grab the box-shadow property ready to paste into your stylesheet.

All done!

You are ready to use Box Shadow Generator like a pro.

Try it now
All guides