Text Shadow in CSS
The text-shadow Property
The text-shadow property adds a shadow to the text. It takes four values. The first value tells distance in the horizontal direction X. The second value tells distance in the vertical direction Y. The third value tells the amount of Blur. The fourth value tells Color.
Syntax:-
Its syntax is:-
< style >
element{
text-shadow: h-shadow v-shadow blur-radius color| none| initial| inherit;
}
< /style >
Further Explanation:-
Value | Description |
---|---|
h-shadow | Required. The position of the horizontal shadow. |
v-shadow | Required. The position of the vertical shadow. |
blur-radius | Optional. The blur radius. |
color | Optional. The color of the shadow. |
none | No shadow. |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |