tip.tools

CSS Box Shadow Generator

Shadow Controls
5px
-100px100px
5px
-100px100px
10px
0px100px
0px
-50px50px
0.30
Live Preview
Generated CSS
box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.3);

About the CSS Box Shadow Generator

Box shadows are one of the most versatile CSS properties for adding depth and visual interest to web page elements. This free tool lets you visually design and customize box shadows with an intuitive interface, generating the exact CSS code you need without any guesswork or trial and error.

The box-shadow property accepts multiple values that control different aspects of the shadow effect. The horizontal and vertical offsets determine where the shadow appears relative to the element. Positive values move the shadow right and down, while negative values move it left and up. The blur radius controls how soft or sharp the shadow edge appears, with larger values creating more diffuse shadows.

The spread radius is often overlooked but provides powerful control over shadow size. Positive spread values make the shadow larger than the element, while negative values make it smaller. This is particularly useful for creating tight, focused shadows or glowing effects. Combined with the inset option, which places the shadow inside the element, you can create pressed or recessed appearances.

One of the most powerful features of CSS box shadows is the ability to layer multiple shadows on a single element. By adding shadows with different colors, offsets, and blur values, you can achieve complex effects like realistic depth, colored glows, or neon-style highlights. All changes update in real-time, letting you experiment freely until you achieve the perfect look for your design.

Frequently Asked Questions

Related Tools