CSS · The box model

box-shadow

Draws shadows outside or inside the box. Multiple shadows are comma-separated.

Syntax
box-shadow: 0 8px 24px rgb(0 0 0 / 0.12)

Example

Try it

More in this group

aspect-ratio border border-radius box-sizing height margin margin-block / margin-inline min-width / max-width

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course