Style borderImage Property
Style borderImage Property
The borderImage property is used for setting images on the border. It is a shorthand property of the following properties:_
- borderImageSource
- borderImageSlice
- borderImageWidth
- borderImageOutset
- borderImageRepeat
Syntax:-
Its syntax is:- object.style.borderImage OR object.style.borderImage = source slice width outset repeat|initial|inherit
Return:-
Its return is:- string having border-image property of an element
Further Explanation:-
Value | Description |
---|---|
borderImageSource | The path to image to be used as a border. |
borderImageSlice | The inward offsets of the image-border. |
borderImageWidth | The widths of the image-border. |
borderImageOutset | The amount by which the border-image area extends beyond the border box. |
borderImageRepeat | Whether the image border should be repeated, rounded, or stretched. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |