Style boxShadow Property
Style boxShadow Property
The boxShadow property is used to either set or return the drop-shadows of a box element.
Syntax:-
Its syntax is:- object.style.boxShadow OR object.style.boxShadow = none|h-shadow v-shadow blur spread color |inset|initial|inherit
Return:-
Its return is:- string having box-shadow property of an element
Further Explanation:-
Value | Description |
---|---|
none | Default value. |
h-shadow | Required. The position of horizontal shadow. |
v-shadow | Required. The position of vertical shadow. |
blur | Optional. The blur distance. |
spread | Optional. The size of the shadow. |
color | Optional. The color of the shadow. |
inset | Optional. Changes the shadow from an outer shadow to an inner shadow. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |