THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

Style borderImageOutset Property

Style Object Reference Style Object

Example

Place the border outside the edges of the <div> element:

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

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

The borderImageOutset property is not supported in Opera.

The borderImageOutset property is not supported in Internet Explorer 10 and earlier.

The borderImageOutset property is not supported in Safari 5 and earlier.

Look at the borderImage property instead!


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. 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.

Property Values

Value Description
length A length unit specifying how far from the edges the border-image will appear. Default value is 0
number Represent multiples of the corresponding border-width
initial Sets this property to its default value. Read about initial
inherit Inherits this property from its parent element. Read about inherit

Technical Details

Default Value: 0
Return Value: A String, representing the border-image-outset property of an element
CSS Version CSS3

Related Pages

CSS reference: border-image-outset property


Style Object Reference Style Object