Box Shadow Basics
The box-shadow property adds shadow effects around an element's frame. Shadows create depth, lift, and separation between layers in a UI.
Syntax
box-shadow: [inset] offset-x offset-y [blur-radius] [spread-radius] [color]
- offset-x / offset-y: position of the shadow. Positive values move right and down.
- blur-radius: larger values create softer, more diffused shadows.
- spread-radius: positive values expand the shadow, negative values shrink it.
- inset: draws the shadow inside the element.