CSS box decoration break Property (original) (raw)
Last Updated : 26 Aug, 2024
The **box-decoration-break property is used to control the box decoration after the fragmentation of the paragraph. It defines the background, padding, border, margin, and clip path of an element that is applied when the box for the element is broken into separated parts.
**Default Value: slice
**Syntax:
box-decoration-break: slice|clone|initial|inherit;
**Property values:
- **slice: This property breaks the edges of the element fragments as a whole.
- **Clone: It is used to decorate each fragment of the element as if the fragments were unbroken, individual elements. Borders wrap the four edges of each fragment of the element, and backgrounds are redrawn in full for each fragment.
- i**nitial: It sets the property to its default value.
**Example: In this example, we are using box-decoration-break: slice; property.
HTML `
box-decoration-break property