textShadow property
Specifies a comma-separated list of shadows that attaches one or more drop shadows to the specified text.
This property is read/write.
![]() ![]() |
Syntax
HRESULT put_textShadow( [in] DOMString val ); HRESULT get_textShadow( [out] DOMString **ptr );
Property values
Type: DOMString
String format
none |
<shadow>
CSS information
| Applies To | All elements |
|---|---|
| Media | visual |
| Inherited | true |
| Initial Value | none |
Standards information
- CSS Text Level 3, Section 11.3
Remarks
The IHTMLCSSStyleDeclaration2::textShadow property can specify one or more drop shadows. The components of each shadow are interpreted as follows:
- Required: The first length is the horizontal offset of the shadow. A positive value draws a shadow that is offset to the right of the box, a negative length to the left.
- Required: The second length is the vertical offset. A positive value offsets the shadow down, a negative one up.
- Optional: The third length is a blur distance. Negative values are not allowed. If the blur value is zero, the shadow's edge is sharp. Otherwise, the larger the value, the more the shadow's edge is blurred.
- Optional: The fourth length is a spread distance. Positive values cause the shadow shape to expand in all directions by the specified radius. Negative values cause the shadow shape to contract.
- Optional: The color is the color of the shadow.
Requirements
|
Minimum supported client |
Windows 7 |
|---|---|
|
Minimum supported server |
Windows Server 2008 R2 |
|
IDL |
|
Show:

