CSS box-shadow Property


The box-shadow property attaches one or more shadows to an element.

CSS Syntax

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).

Example -