Offset
The first value moves the shadow horizontally and the second vertically. Positive values move right or down; negative values move left or up.
Web CSS Tool
A good interface shadow often combines a broad, faint ambient layer with a smaller directional layer. This generator lets you edit each layer separately and combines them into one valid, comma-separated declaration. Use positive or negative offsets, soften edges with blur, expand or contract the footprint with spread, and switch any layer to an inner shadow with inset.
The preview and CSS update locally as you work. No shadow settings or copied code are sent anywhere.
Select a layer to edit it. Layers are painted front to back in the listed order.
The first value moves the shadow horizontally and the second vertically. Positive values move right or down; negative values move left or up.
Blur softens the edge and must be zero or positive. Spread grows a positive shadow or contracts a negative one before blur is applied.
Alpha controls visual strength. Add inset to paint inside the border box; omit it for the usual outer shadow.
Syntax reference: W3C CSS Backgrounds and Borders Module. The generator uses pixels, rounds values consistently, and permits up to eight layers to keep output manageable.
Combine a wide, low-opacity ambient layer with a smaller, slightly darker directional layer. Soft shadows usually look more convincing than one very dark edge.
Large blurred shadows and many animated layers can be expensive to paint. Keep motion restrained and test scrolling on the devices your site supports.
Shadows do not change layout size. Leave visual breathing room and check ancestor overflow or clipping rules when a shadow disappears.
They are horizontal offset, vertical offset, blur radius, and spread radius. The blur radius cannot be negative; spread and offsets can be.
Separate each shadow with a comma. Add or duplicate layers here and the generator will assemble the comma-separated value automatically.
inset paints the shadow inside the element. It is useful for pressed buttons, recessed panels, form fields, and subtle inner highlights.
No. It is painted without changing the element’s calculated width or height, though nearby content can visually overlap it.
Check ancestors for overflow: hidden, overflow: clip, clipping paths, or insufficient visible space around the element.
No. The tool runs entirely in your browser and does not upload or store your shadow settings.