CSS Box Shadow Generator

Design CSS box shadows with offset, blur, spread, colour, opacity and inset — live preview.

Runs instantly in your browser — results update as you type.

How does CSS box-shadow work?

The CSS box-shadow property draws one or more shadows around an element's box, defined by horizontal and vertical offset, blur radius, spread, colour and an optional inset keyword.

How to use the CSS Box Shadow Generator

    Frequently asked questions

    Can I add several shadows?

    Yes, separate shadows with commas in the box-shadow property.

    Does box-shadow affect layout?

    No, shadows do not take up space or move other elements.

    What is the difference with text-shadow?

    box-shadow shadows the element's box; text-shadow shadows the letters. Use the Text Shadow Generator for text.