If you have googled this a bit more, you would have found the answer right away.

The box-shadow property syntax is the fallowing :

box-shadow : horizontal offset | vertical offset | blur | spread | color ;

So you want it on all sides means :

  1. No offsets.
  2. Blur as you like.

Spread here is key to this, setting 10px to the spread means 5px on all sides, basically, half the amount will be on each facing side.

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

div {
  padding: 30px;
  margin: 30px;
  width: 300px;
  height: 100px;
  padding: 15px;
  background-color: orange;
  box-shadow: 0px 0px 10px 10px grey;
}
<div></div>

Also if you want to customize that you always define multiple shadows separated by a comma.

Answer from user7148391 on Stack Overflow
🌐
W3Schools
w3schools.com › css › css3_shadows_box.asp
CSS Box Shadow
The higher the number, the more blurred the shadow will be. A <div> element with a 5px blurred, lightblue box-shadow
Discussions

css - Seamless box-shadow for blurry effect - Stack Overflow
The buggy rendering in Chrome seems ... to only occur with large blur-radius values. Through trial and error you can use the spread-radius to cover up the bug. ... These are the changes that work on your site. Place the border radius and box shadow on the outer div to eliminate ... More on stackoverflow.com
🌐 stackoverflow.com
Simple trick to make your box-shadows look much better

I've done graphic design for many years and this applies to anything you want to make a drop shadow for, it requires 4 layers but the effect is flawless in appearance.

Excellent tip for applying this to css.

More on reddit.com
🌐 r/web_design
50
559
June 23, 2017
Use colored Box Shadow in Tailwind CSS for NProgress Glow effect?
Creator of Tailwind said it's in the works for v3 :) More on reddit.com
🌐 r/tailwindcss
2
5
April 5, 2021
Is there a way to create these bordered shadows without having to add another div?
Drop shadow like it's 2003 again? I would play around with css box-shadow: https://css-tricks.com/almanac/properties/b/box-shadow/ More on reddit.com
🌐 r/webdev
70
77
May 31, 2023
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Reference › Properties › box-shadow
box-shadow - CSS - MDN Web Docs - Mozilla
January 12, 2026 - If in any pair of shadows, one has inset set and the other does not, the entire shadow list is uninterpolated; the shadows will change to the new values without an animating effect. The box-shadow property enables you to cast a drop shadow from the frame of almost any element.
🌐
CSS-Tricks
css-tricks.com › almanac › properties › b › box-shadow
box-shadow | CSS-Tricks
September 22, 2022 - The vertical offset (required) ... the box. The blur radius (required), if set to 0 the shadow will be sharp, the higher the number, the more blurred it will be, and the further ......
🌐
W3Schools
w3schools.com › cssref › css3_pr_box-shadow.php
CSS box-shadow property
box-shadow: none|h-offset v-offset blur spread color |inset|initial|inherit; Note: To attach more than one shadow to an element, add a comma-separated list of shadows (see "Try it Yourself" example below). Tip: Read more about allowed values (CSS length units)
🌐
Josh W. Comeau
joshwcomeau.com › css › designing-shadows
Designing Beautiful Shadows in CSS • Josh W. Comeau
To ensure consistency, each shadow should use the same ratio between these two numbers. As an element gets closer to the user, the offset should increase, the blur radius should increase, and the shadow's opacity should decrease.
🌐
Medium
medium.com › @nanacodesign › css-box-shadow-what-is-difference-between-blur-and-spread-c3a3de92a126
CSS box-shadow: blur vs spread | Medium
July 1, 2024 - As you can see above the image, If the blur value increase, the shadow is more blurred. On the other hand, If the spread value increase, the size of the shadow is bigger as the value. Tip1. Multiple shadow · Also, you can make multiple shadow like below. It is separated by commas. ... /*..., ..., ...; */.multiple { box-shadow: inset 0 0 0 10px darkred, 0px 0px 0px 10px LightSeaGreen, 20px 20px 0px 10px darkblue; }
Find elsewhere
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › box-shadow
box-shadow - CSS | MDN
If the lists of shadows have different lengths, then the shorter list is padded at the end with shadows whose color is transparent, and X, Y, and blur are 0, with the inset, or lack of inset, being set to match. If in any pair of shadows, one has inset set and the other does not, the entire shadow list is uninterpolated; the shadows will change to the new values without an animating effect. box-shadow = <spread-shadow># <spread-shadow> = <'box-shadow-color'>? && [ <'box-shadow-offset'> [ <'box-shadow-blur'> <'box-shadow-spread'>? ]? ] && <'box-shadow-position'>? <box-shadow-color> = <color># <box-shadow-offset> = [ none | <length>{2} ]# <box-shadow-blur> = <length [0,∞]># <box-shadow-spread> = <length># <box-shadow-position> = [ outset | inset ]#
🌐
Elektronotdienst-nuernberg
elektronotdienst-nuernberg.de › bugs › box-shadow_inset.html
CSS box-shadow "inset" and blur (tests, examples)
Read What does a blur radius mean? from Mozilla's David Baron if you are interested in browser implementation details. ... 0 0 0 1em gold, 0 0 1em 2em red, 0 0 0 3em black, 0 0 0 3.7em yellowgreen, 0 0 0 4.4em green; /* border-radius: 1px */ ... Specifying a color is optional. If omitted, box-shadows are drawn in foreground color (text color), as in the following four examples with dark brown shadows.
🌐
GeeksforGeeks
geeksforgeeks.org › css › css-box-shadow-property
CSS box-shadow Property - GeeksforGeeks
September 27, 2024 - box-shadow: h-offset v-offset blur-radius spread-radius color | none | inset | initial | inherit; ... In this example, we apply the CSS box-shadow property to two div elements. The first element has a shadow with a horizontal offset of 5px, ...
🌐
Refine
refine.dev › home › blog › tutorials › css box shadow with 25 examples
CSS Box Shadow with 25 Examples | Refine
February 28, 2024 - To apply a box shadow, select an element using the CSS selectors and specify the required horizontal and vertical offsets as above. Optionally, specify the blur and spread radius, box shadow color, and the inset keyword.
🌐
WebFX
webfx.com › home › blog › web design › a close look at css box shadow
A Close Look at CSS Box Shadow - WebFX
The blur radius is optional. If you don’t specify it, it will default to 0. Additionally, it can’t have a negative value, unlike horizontal offset and vertical offset. If the blur radius is 0, the box shadow will be sharp and its color will be solid.
🌐
Tailwind CSS
tailwindcss.com › docs › box-shadow
box-shadow - Effects - Tailwind CSS
By default colored shadows have an opacity of 100% but you can adjust this using the opacity modifier. Use ring or ring-<number> utilities like ring-2 and ring-4 to apply a solid box-shadow to an element:
🌐
HTML-CSS-JS
html-css-js.com › css › generator › box-shadow
Box Shadow CSS Generator and Style Gallery
Set the properties of your box shadow to get the CSS style. Use the sliders and the color picker to set the values and watch the live preview until you reach the desired effect. Select the right-down shift, spread, blur, opacity, color.
🌐
SpinKit
tobiasahlin.com › blog › layered-smooth-box-shadows
Smoother & sharper shadows with layered box-shadows | Tobias Ahlin
September 19, 2019 - We can achieve this effect by creating multiple box-shadows (separating each shadow with a comma), and increasing the offset and blur for every shadow (the box-shadow syntax is X-offset Y-offset blur color):
🌐
CSS-Tricks
css-tricks.com › snippets › css › css-box-shadow
CSS Box Shadow | CSS-Tricks
September 29, 2022 - -moz-box-shadow: 0px 0px 0px 4px red; -webkit-box-shadow: 0px 0px 0px 4px red; box-shadow: 0px 0px 0px 4px red; Setting the blur to 1px was the closest I could get to solid and still have it render on Android devices:
🌐
W3docs
w3docs.com › learn-css › box-shadow.html
CSS box-shadow Property
Positive value gives shadow below the element. Negative values place the shadow above the element. If both values are 0, the shadow will be behind the element. The third value is a blur. The higher the number, the bigger the blur, so the shadow becomes bigger and lighter.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Guides › Backgrounds_and_borders › Box-shadow_generator
Box-shadow generator - CSS - MDN Web Docs
November 20, 2025 - This adds a shadow, and lists it in the column on the left. Now you can set the values of the new shadow: Set the shadow's color using the color picker tool. Set the shadow to be inset using the "inset" checkbox. Use the sliders to set the element's position, blur...