Style borderImageSource property
Example
Use an image as the border around a div element:
document.getElementById("myDIV").style.borderImageSource="url(border.png)";
Try it »
Definition and Usage
The borderImageSource property sets or returns the image to be used instead of the border style given by the border-style property.
**Tip:** If the value is "none", or if the image is not displayed, the border style is used.
Browser support

Opera does not support the borderImageSource property.
Internet Explorer 10 and earlier versions do not support the borderImageSource property.
Safari 5 and earlier versions do not support the borderImageSource property.
See borderImage property as an alternative!
Syntax
Return the borderImageSource property:
object
.style.borderImageSource
Set the borderImageSource property:
object
.style.borderImageSource="none|
image
|initial|inherit"
Attribute values
| Value | Description |
|---|---|
| none | No image is used. |
| image | The path to the image to be used for drawing the border. |
| initial | Sets this property to its default value. See initial. |
| inherit | Inherits this property from its parent element. See inherit. |
Technical Details
| Default value: | none |
|---|---|
| Return Value: | A string representing the element's border-image-source property. |
| CSS version | CSS3 |
Related Articles
CSS Reference Manual:The border-image-source property
The Style object