Name

text-shadow

Synopsis

This permits the assignments of one or more “shadows” to the text in an element. The first two length values in a shadow definition set horizontal and vertical offsets, respectively, from the element’s text. The third length defines a blurring radius. Note that this property does not appear in CSS2.1.

Values:

none | [<color> || <length> <length> <length>? ,]* [<color> || <length> <length> <length>?] | inherit

Initial value:

none

Applies to:

all elements

Inherited:

no

Get Cascading Style Sheets: The Definitive Guide, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.