text-shadow property
3.5 | ||||
Specifies a comma-separated list of shadow effects to be applied to the text of the element.
Note: The text-shadow property is supported in Firefox from version 3.5.
JavaScript page for this property: textShadow. You can find other example(s) there. |
Possible values:
One of the following values: | ||||||||||||||||||||||||
|
Description of values:
The blur radius of the shadow in length units, 0 value means sharp, larger values mean the shadow is blurred. For the supported length units, see the length page. | |||||||
The color of the shadow, if not specified, the value of the color property is used. For the supported color values, see the colors page. | |||||||
The horizontal offset of the shadow from the text in length units. For the supported length units, see the length page. | |||||||
Takes the value of this property from the computed style of the parent element. | |||||||
Default. No shadow is drawn. | |||||||
The vertical offset of the shadow from the text in length units. For the supported length units, see the length page. |
Default: none.
Example HTML code 1:
This example illustrates the use of the text-shadow property:
|
||||
<head> <style> .example { text-shadow: green 4px 4px, blue -4px -4px; } </style> </head> <body> <p class="example">text shadow</p> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
a, abbr, acronym, address, b, bdo, big, blink, blockQuote, body, button, caption, center, cite, code, col, colGroup, dd, del, dfn, dir, div, dl, dt, em, fieldSet, font, form, H1, H2, H3, H4, H5, H6, html, i, input:button, input:file, input:password, input:reset, input:search, input:submit, input:text, ins, isIndex, kbd, label, legend, li, marquee, menu, ol, p, plainText, pre, q, s, samp, select, small, span, strike, strong, sub, sup, table, tBody, td, textArea, tFoot, th, tHead, tr, tt, u, ul, var, xmp
Related pages:
color
font
font-family
font-size
font-size-adjust
font-style
font-variant
font-weight
text-align
text-align-last
text-autospace
text-decoration
text-indent
text-justify
text-kashida-space
text-overflow
text-transform
text-underline-position
font
font-family
font-size
font-size-adjust
font-style
font-variant
font-weight
text-align
text-align-last
text-autospace
text-decoration
text-indent
text-justify
text-kashida-space
text-overflow
text-transform
text-underline-position
External links:
User Contributed Comments