Back to the index.
The text-shadow
declaration allows you to create a text shadow; i.e. a slightly moved, slightly blurred copy of a text.
The quick brown fox jumped over the lazy dog. Oh, how that fox jumped, quick and brown, while the dog never reacted because he was so very lazy.
The example makes clear text-shadow
should be used moderately.
p.test { text-shadow: #6374AB 20px -12px 2px; }
As you see text-shadow
accepts four values:
#6374AB
)20px
), relative to the text-12px
), relative to the text2px
), which means the amount of space the shadowtext
is 'stretched', causing a blur effect. 0 means: no blur. Don't set this value too high, the shadowtext
quickly becomes illegible.