CSS border-image-outset Property
Description
The border-image-outset property controls how far the drawn border-image is allowed to extend beyond (or be pulled inside of) the element’s border box. It affects the visual placement of the border graphic rather than the pixel content of the element itself - you can use it to make the border artwork appear to float outside the element or to tuck the edge treatment closer to the element’s interior. Because it adjusts only where the border image is painted, it’s a tool for fine-tuning the look of a border image without changing other dimensions directly.
This property works together with the other border-image settings that determine source, slicing, width, and tiling of the graphic. For example, the image used comes from border-image-source, the image portions are determined by border-image-slice, and the thickness used when painting is governed by border-image-width. The shorthand border-image can combine these properties, and border-image-repeat controls how the side pieces tile or stretch - all of which affect how useful or visible an outset is in a given design.
Because the property only alters painting, using it can cause the border image to overflow the element’s border box and thus interact with clipping, stacking, and scrollable overflow. In practical terms, large positive outsets may make parts of the border sit over neighboring content or outside the element area (so you may need to consider overflow, stacking context or additional spacing), while inward adjustments can make the artwork overlay the element’s padding or content area. In short, border-image-outset is a visual offset control for border-image compositions - very handy for precise aesthetic adjustments when composing complex border graphics.
Definition
- Initial value
- 0
- Applies to
- All elements
- Inherited
- No
- Computed value
- Four values, each a number or <length> made absolute
- Animatable
- No
- JavaScript syntax
- object.style.borderImageOutset
Interactive Demo
Syntax
border-image-outset: [ <length> | <number> ]{1,4}
Values
- <length>Floating-point number, followed by an absolute units designator (cm, mm, in, pt, or pc) or a relative units designator (em, ex, or px). Negative numbers are not allowed.
- <number>Represents a multiple of the corresponding border-width. Negative values are not allowed for any of the 'border-image-outset' values.
Example
Browser Support
The following information will show you the current browser support for the CSS border-image-outset property. Hover over a browser icon to see the version that first introduced support for this CSS property.
This property is supported by all modern browsers.
Desktop
Tablets & Mobile
Last updated by CSSPortal on: 1st January 2026
