The border-image
property specifies an image as a border of an element.
It is a shorthand property of the following:
border-image-source
border-image-slice
border-image-width
border-image-outset
border-image-repeat
border-image: source slice width outset repeat|initial|inherit;
border-image-source
: It is used to specify the path to the image we have to use as a border.
border-image-slice
: It is used to specify the dimensions for slicing the source image.
border-image-width
: It is used to specify the width of the source image.
border-image-outset
: It is used to specify the distance of the image from the element’s outer edge.
border-image-repeat
: It is used to specify whether the images should be rounded, repeated, or stretched.
initial
: It is used to set the property to the default value.
inherit
: It is used to inherit the property from the parent element.