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

HTML DOM Style borderImageOutset property

Style borderImageOutset property

Style Object Reference The Style object

Example

Place the border outside the

edge of the element:

document.getElementById("myDIV").style.borderImageOutset="5px 10px 20px 15px";

Try it »


Definition and Usage

The borderImageOutset property sets or returns the amount by which the border image area extends beyond the border box.


Browser support

Internet Explorer Firefox Opera Google Chrome Safari

Opera does not support the borderImageOutset property.

Internet Explorer 10 and earlier versions do not support the borderImageOutset property.

Safari 5 and earlier versions do not support the borderImageOutset property.

See borderImage property as an alternative!


Syntax

Return the borderImageOutset property:

object

.style.borderImageOutset

Set the borderImageOutset property:

object

.style.borderImageOutset="

length

|

number

|initial|inherit"

**Note:** The borderImageOutset property specifies the amount by which the border image area extends beyond the border box. The values are given in the order top, right, bottom, and left. If the fourth value is omitted, it is the same as the second. If the third is also omitted, it is the same as the first. If the second is also omitted, it is the same as the first. Negative values are not allowed for borderImageOutset.

Attribute values

Value Description
length A length unit specifying how far the border image will appear beyond the edge. The default value is 0.
number A multiple of the corresponding border width.
initial Sets this property to its default value. See initial.
inherit Inherits this property from its parent element. See inherit.

Technical Details

Default value: 0
Return Value: A string representing the element's border-image-outset property.
CSS version CSS3

Related Articles

CSS Reference Manual:The border-image-outset property


Style Object Reference The Style object