Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

CSS3 border-image-source property

CSS3 border-image-source property

Example

Use an image as the border of a div element:

div

{

border-image-source: url(border.png);

}


Browser support

The numbers in the table indicate the first browser version that supports this property.

property
border-image-source 15.0 11.0 15.0 6.0 15.0

Property definition and usage

The border-image-source property specifies the image to use instead of the border style set by the border-style property.

Tip: If the value is "none", or if the image cannot be displayed, the border style will be used.

Default value: none
Inherited: no
Version: CSS3
JavaScript syntax: object.style.borderImageSource="url(border.png)"

Syntax

border-image-source: none|

image

;

Value Description
none No image is used
image The border uses a path to an image