The box-shadow CSS property adds one or more shadow effects around an element's frame. The full syntax follows this exact order:
box-shadow: [offset-x] [offset-y] [blur-radius] [spread-radius] [color] [inset];
Mathematical representation of a single shadow layer:
$$S_i = f(h_i, v_i, b_i, s_i, c_i, inset_i)$$
0 produces a sharp edge.Multiple Layer Composition:
For n shadow layers the total box-shadow is the union:
$$\text{box-shadow} = \bigcup_{i=1}^{n} S_i = S_1,\; S_2,\; \dots,\; S_n$$
Blur Distance Calculation:
The visual extent of a shadow can be estimated as:
$$\text{total-extent} = |h| + |v| + s + 2b$$
This accounts for offset distance, spread expansion, and blur radius on both sides of the element.
Create complex CSS box-shadows visually. Adjust offset, blur, spread, and color with real-time preview. Copy CSS code instantly.
Real-time Preview
Popular Presets
Generated CSS Code
box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.25);Results are estimates based on standard models. Please verify critical data before taking action. Terms of Use
Securely encode and decode text to Base64 format instantly. Perfect for developers and secure data transmission online.
Convert colors between HEX, RGB, and HSL formats instantly. Preview colors visually and copy values with one click.
Build and debug cron schedules with a visual interface and human-readable output.