Easy Tutorial
❮ Prop Range Disabled Prop Submit Form ❯

Style borderImageSource Property

Style Object

Example

Using an image as the border around a div element:


Definition and Usage

The borderImageSource property sets or returns the image to be used instead of the border style specified by the border-style property.

Tip: If the value is "none", or if the image cannot be 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 the borderImage property as an alternative!


Syntax

Return the borderImageSource property:

Set the borderImageSource property:

Property 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: String, representing the border-image-source property of the element.
--- ---
CSS Version CSS3
--- ---

Related Articles

CSS Reference: border-image-source Property


Style Object

❮ Prop Range Disabled Prop Submit Form ❯