CSS border-image-outset Property
The border-image-outset property in CSS specifies how far the border image should extend beyond the border box. This property works alongside border-image-source, border-image-slice, and border-image-width to control the overall look and feel of the border.
1. Syntax
2. Accepted Values
| Value | Description | Example |
|---|---|---|
length | A positive value (in px, em, rem, etc.) that defines the distance the border image extends beyond the border box. | border-image-outset: 10px; |
% | A percentage was relative to the border-image-slice value. | border-image-outset: 20%; |
auto | The default value, which means the image extends by the same amount as the border width. | border-image-outset: auto; |
3. Example – Basic Usage
You can control how far the border image extends beyond the element's border:
✅ The border image extends 15px beyond the border box.
4. Example – Using Percentage
You can use percentage values to set the extent based on the border-image-slice value:
✅ The border image extends 50% of the slice area.
5. Example – Using auto
The auto value means the image will extend by the same amount as the border width:
✅ The border image extends by the width of the border, which in this case is 10px.
6. Example – Different Values for Each Side
You can specify different outset values for each side of the element:
✅ Order of values (clockwise):
-
Top →
10px -
Right →
20px -
Bottom →
30px -
Left →
40px
7. Best Practices
✔ Use auto when you want the outset to match the border width.
✔ Use length or percentage for precise control over the image’s extension beyond the border.
✔ Experiment with different values for each side to create unique effects.

