-moz-box-shadow property | -webkit-box-shadow property
-moz-box-shadow: |
|
||||||||||
-webkit-box-shadow: |
Specifies a comma-separated list of shadow effects to be applied to the box of the element.
Note: The -moz-box-shadow property is supported in Firefox from version 3.5.
JavaScript page for this property: MozBoxShadow | webkitBoxShadow. 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 means sharp, larger values mean the shadow is blurred. For the supported length units, see the length page. | |||||||
Color of the shadow. For the supported color values, see the colors page. | |||||||
The horizontal offset of the shadow 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 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 -moz-box-shadow and -webkit-box-shadow properties:
|
||||
<head> <style> .example { width: 250px; height: 100px; background: #e4e4e4; border: 1px solid #acacac; -moz-box-align: center; -moz-box-shadow: 5px 5px 5px gray; -webkit-box-shadow: 5px 5px 5px gray; } </style> </head> <body> <div class="example"> Some text content within a division element </div> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
a, abbr, acronym, address, b, bdo, big, blink, blockQuote, body, caption, center, cite, code, dd, del, dfn, dir, div, dl, dt, em, fieldSet, font, form, H1, H2, H3, H4, H5, H6, html, i, ins, isIndex, kbd, label, legend, li, marquee, menu, ol, p, pre, s, samp, small, span, strike, strong, sub, sup, table, td, textArea, th, tr, tt, u, ul, var, q, xmp
Related pages:
-moz-box-align
-moz-box-direction
-moz-box-flex
-webkit-box-flex-group
-webkit-box-lines
-moz-box-ordinal-group
-moz-box-orient
-moz-box-pack
-moz-box-sizing
-moz-box-direction
-moz-box-flex
-webkit-box-flex-group
-webkit-box-lines
-moz-box-ordinal-group
-moz-box-orient
-moz-box-pack
-moz-box-sizing
External links:
-moz-box-shadow (Mozilla Developer Center)
-webkit-box-shadow (Safari Reference Library)
CSS3 Advanced Layout
-webkit-box-shadow (Safari Reference Library)
CSS3 Advanced Layout
User Contributed Comments