border-image-outset

Controls how far outside the element's actual box the border image is drawn. It's useful for making a decorative border appear as if it's 'floating' around its container.

It is documented as part of the CSS Backgrounds and Borders specification.

/* Usage Example */
.fancy-container {
  border: 10px solid transparent;
  border-image-source: url(';frame.png');
  border-image-slice: 30;
  /* Extends the image 5px beyond the box */
  border-image-outset: 5px;
}

/* Syntax */
border-image-outset: length;
border-image-outset: number;

/* Global values */
border-image-outset: inherit;
border-image-outset: initial;
border-image-outset: revert;
border-image-outset: revert-layer;
border-image-outset: unset;
Widely available Since 2017 96% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2017.

15+
15+
6+
12+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC