Place the border outside the edges of the <div> element:
The borderImageOutset property sets or returns the amount by which the border image area extends beyond the border box.
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!
Return the borderImageOutset property:
Set the borderImageOutset property:
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.
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 |
Default Value: | 0 |
---|---|
Return Value: | A String, representing the border-image-outset property of an element |
CSS Version | CSS3 |
CSS reference: border-image-outset property