CSS box decoration break Property
CSS box-decoration-break Property
The box-decoration-break property is used to determine how the background, padding, border, border-image, box-shadow, margin, and clip-path of an element is applied when the box for the element is fragmented.
Default Value:-
Its default value is slice.
Syntax:-
Its syntax is:- box-decoration-break: slice | clone | initial | inherit | unset;
Further Explanation:-
Value | Description |
---|---|
slice | Box decorations are applied to the element as a whole and break at the edges of the element fragments |
clone | Box decorations apply to each fragment of the element as if the fragments were individual elements. |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |