The box-shadow
property is used to create a shadow effect around an HTML element.
The box-shadow
property can have the values below. These values define the shadow’s characteristics:
value | description |
---|---|
h-offset | The horizontal offset of a shadow. A positive value creates a shadow on the right, and a negative value creates a shadow on the left. |
v-offset | A positive vertical offset creates a shadow below the box, and a negative offset creates one above the box. |
blur | The blur radius of the shadow. |
spread | The size of the shadow. |
color | The color of the shadow. |
inset | Changes the shadow from an outer shadow to an inner shadow. |
These values take the following order in the syntax:
box-shadow: h-offset v-offset blur spread color inset;
Free Resources