property
|
chrome
|
firefox
|
microsoft edge
|
Opera
|
border-box-shadow
|
10.0
4.0 -webkit-
|
4.0
3.5 -moz-
|
9.0
|
10.5
|
Value
|
Description
|
none
|
Default value. No shadow is displayed
|
h-offset
|
Required. The horizontal offset of the shadow. A positive value puts the shadow on the right side of the box, a negative value puts the shadow on the left side of the box
|
v-offset
|
Required. The vertical offset of the shadow. A positive value puts the shadow below the box, a negative value puts the shadow above the box
|
blur
|
Optional. The blur radius. The higher the number, the more blurred the shadow will be
|
spread
|
Optional. The spread radius. A positive value increases the size of the shadow, a negative value decreases the size of the shadow
|
color
|
The color of the shadow. The default value is the text color. Look at CSS Color Values for a complete list of possible color values.
|
inset
|
Changes the shadow from an outer shadow (outset) to an inner shadow
|
initial
|
Sets this property to its default value.
|
inherit
|
Inherits this property from its parent element.
|
Default value:
|
None
|
Version:
|
CSS3
|
inherited
|
No
|
Animatable
|
Yes
|
JavaScript syntax:
|
object.style.boxShadow="10px 20px 30px blue"
|