English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

CSS reference manual

CSS @rules (RULES)

CSS attributes in full

CSS3 border-image-Usage and examples of the outset property

This border-image-The outsetCSS property specifies the amount by which the boundary image area extends beyond the border box.

The table below provides usage instructions and version history for this property, as well as the syntax for using this property in JavaScript scripts.

Default value:0
Applicable to:

This attribute can be applied to any element, but when the border of table elements (such as tr, th, td) is-When the collapse attribute value of border is collapse-image-The outset attribute is invalid.

It also applies to::first-letter.

Inheritance:None
Animatable:No.Please see Animation attributes.
Version: CSS3New feature
New feature of JavaScript syntax:object.style.borderImageOutset="20 20"

border-image-Syntax of outset usage

The syntax of this attribute is as follows:

 border-image-outset: length | number | initial | inherit

The following example demonstrates how to use border-image-outset attribute.

.box {
    width: 300px;
    height: 150px;
    border: 15px solid transparent;
    border-image-source: url("border.png");
    border-image-slice: 30;
    border-image-outset: 15px;
}
Test to see‹/›

Attribute values

The following table describes the values of this attribute.

ValueDescription
lengthSpecifies the absolute distance or the distance in relative units that the boundary image exceeds the bounding box. Negative values are not allowed.
numberRepresents the boundary width or the width of the bounding boxborder-widthtimes the value. Negative values are not allowed.
initialSet this attribute to its default value.
inheritIf specified, the associated elements use their parent element's border-image-outset attribute values.

Browser compatibility

border-image-Browser compatibility of outset attribute, the numbers in the following table represent the minimum browser version that supports this attribute; all mainstream browsers support this attribute.

  • Firefox 15+

  • Google Chrome15+

  • Internet Explorer 11+

  • Apple Safari 6+

  • Opera 15+

For further reading

Please refer to the following tutorials:CSS3 BorderandCSS Border.

Related attributes:border-image,border-image-source,border-image-slice,border-image-width,border-image-repeat,border.