Easy Tutorial
❮ Met Document Hasfocus Prop Script Character ❯

Style textShadow Property


Definition and Usage

The textShadow property sets or returns one or more text shadow effects.

Syntax

Setting the textShadow property:

Note: The textShadow property appends one or more shadows to the text. This property is a comma-separated list of shadows, each defined by 2 or 3 length values and an optional color. Omitted lengths default to 0.

Returning the textShadow property:

Value Description
none Default. No shadow is drawn.
h-shadow Required. The position of the horizontal shadow. Negative values are allowed.
v-shadow Required. The position of the vertical shadow. Negative values are allowed.
blur Optional. The blur distance.
color Optional. The color of the shadow. In CSS Color Values
inherit The value of the textShadow property is inherited from the parent element.

Browser Support

All major browsers support the textShadow property, except Internet Explorer.


Example

Adding a shadow to text:

❮ Met Document Hasfocus Prop Script Character ❯