Style borderImageOutset Property
Place the border outside the edges of the <div> element:
document.getElementById("myDIV").style.borderImageOutset = "5px 10px 20px 15px";Try it Yourself »
The borderImageOutset property sets or returns the amount by which the border image area extends beyond the border box.
The numbers in the table specify the first browser version that fully supports the property.
Look at the borderImage property instead!
Return the borderImageOutset property:
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. on the top, right, bottom, and left sides. If the fourth value is omitted, it is the same as the second. If the third one is also omitted, it is the same as the first. If the second one is also omitted, it is the same as the first. Negative values are not allowed for any of the borderImageOutset values.
|A length unit specifying how far from the edges the border-image will appear. Default value is 0
|Represent multiples of the corresponding border-width
|Sets this property to its default value. Read about initial
|Inherits this property from its parent element. Read about inherit
|A String, representing the border-image-outset property of an element
CSS reference: border-image-outset property