Style textShadow Property
Style textShadow Property
The textShadow property is used to either set or return one or more than one shadow effect for a text.
Syntax:-
Its syntax is:- object.style.textShadow OR object.style.textShadow = none | h-shadow v-shadow blur color | initial | inherit
Return:-
Its return is:- a string containing a comma-separated list of shadow effects applied to the text of the element
Further Explanation:-
Value | Description |
---|---|
none | No shadow is drawn. |
h-shadow | Required. The position of horizontal shadow. |
v-shadow | Required. The position of vertical shadow. |
blur | Optional. The blur distance. |
color | Optional. The color of the shadow. |
initial | Sets property to its default value. |
inherit | Inherits this property from its parent element. |