Create beautiful CSS box shadows and get the code instantly. Perfect for cards, buttons, and UI elements!
box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.2);
CSS Box Shadow Generator for your website
The CSS box-shadow property applies shadow effects around an element's frame. You can set multiple effects separated by commas. A box shadow is described by X and Y offsets relative to the element, blur and spread radius, and color.
A box shadow has several adjustable properties:
You can apply multiple shadows by separating them with commas:
box-shadow: 3px 3px 5px 0px rgba(0,0,0,0.2), -1px -1px 5px 0px rgba(255,255,255,0.8);
Blur radius controls how fuzzy the shadow edges are, while spread radius changes the size of the shadow itself. A positive spread expands the shadow, while negative spread contracts it.
Inset shadows create the illusion that the element is pressed into the page rather than raised above it. They're great for:
For more creative designs, try these techniques:
The box-shadow property has excellent browser support:
For very old browsers, consider providing a fallback border.