What is the CSS border-image-slice property?
The border-image-slice property is used to determine how to slice an image. If the image is sliced, it is then divided into nine sections i.e. the middle, four corners, and four edges.
Syntax
We use the following syntax if we want all the sides to be equal.
border-image-slice: value
We use the following syntax if we want to define all the sides separately.
border-image-slice: number|percentage|fill|initial|inherit;
Property values
-
number: This is used to represent the pixels for the image. -
percentage: This is used to define the height or width of the image. -
fill: This is used to fill the middle part of the image. -
initial: This is used to set the value to it’s default value. -
inheritThis is used to inherit property from its parent value.