Shadow CSS Builder

Adjust offsets, blur, spread, and opacity to create a card shadow.

How to use

  1. Set horizontal and vertical offsets. Negative values move left or up; positive values move right or down.
  2. Use blur to soften the edge and spread to expand or contract the shadow.
  3. Paste the declaration inside the card’s CSS rule and check it against the actual page background.

When to use this tool

Tune a card’s shadow by adjusting its direction, edge softness, and darkness separately. The result is a CSS box-shadow declaration for a web element rather than an edited image.

Inputs and settings

Inputs are processed locally in your browser and are not stored.

Example input and actual output

box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.2);

The example uses no horizontal offset, an 8px downward offset, 24px blur, and black at 20% opacity. Negative spread contracts the shadow. A large shadow may extend beyond and be clipped by the preview area.

Scope and limitations

Outputs one outer shadow as a box-shadow declaration.

Next step and alternatives

Button CSS Starter — Prepare colors, radius, and padding for a button on the same screen.

Frequently asked questions

How do blur and spread differ?

Blur changes edge softness; spread changes shadow extent. Adjust spread when you want a larger shadow without a softer edge.

Can I make inset or layered shadows?

This tool creates one outer shadow. Add inset or additional comma-separated shadows by editing the CSS.

Why can a large shadow look clipped in the preview?

A large shadow can extend beyond and be clipped by the preview area. Check the generated CSS in the actual background and layout too.

Related tools

Explore tools & games

All 120 tools · 16 games

All 120 tools · 16 games

Text & writing 26

Calculators & converters 22

Date & time 12

Images & PDF 26

Data & web 28

Random & handy 6

Games 16