The CSS border-image-outset property is a shorthand property used to specify the distance by which an element’s border image is placed outside its box.
Note: The border-image-outset takes effect on the picture specified by border-image-source.
Syntax:
border-image-outset: value;
Property Values:
| Value | Effect |
|---|---|
| Length | Specifies the size of border outset as dimensions. |
| Number | Specifies the size of the border as the multiple of the corresponding border-width. |
| Initial | Specifies the size of border to be default size. |
| Inherit | Inherits the value from its parent element. |
Example Program:
<!DOCTYPE html> <html> <head> <style> body { text-align:center; } h1 { color:green; } .border1 { border: 10px solid transparent; padding: 15px; border-image-source: url( border-image-repeat: round; border-image-width: 20px; border-image-slice: 30; border-image-outset: 10px 20px 12px 9px; } .border2 { border: 10px solid transparent; padding: 15px; border-image-source: url( border-image-repeat: round; border-image-outset: 1; border-image-slice: 30; border-image-width: 20px; } .border3 { border: 10px solid transparent; padding: 15px; border-image-source: url( border-image-repeat: round; border-image-outset: initial; border-image-width: 20px; } .border4 { border: 10px solid transparent; padding: 15px; border-image-source: url( border-image-repeat: round; border-image-outset: inherit; border-image-width: 20px; } div { margin-top:20px; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h2>border-image-outset property</h2> <div class = "border1">Border 1(Length)</div> <div class = "border2">Border 2(Number)</div> <div class = "border3">Border 3(Initial)</div> <div class = "border4">Border 4(Inherit)</div> </body> </html> |
chevron_right
filter_none
Output:

Browser Support: The browser supported by border-image-outset property are listed below:
- Chrome-15.0
- Edge-11.0
- Firefox-15.0
- Opera-15.0
- Safari-6.0
Recommended Posts:
- HTML | DOM Style borderImageOutset Property
- CSS | transition-property Property
- How to override the CSS properties of a class using another CSS class ?
- Difference between bootstrap.css and bootstrap-theme.css
- CSS | table-layout Property
- CSS | text-align Property
- CSS | border-top-width Property
- CSS | isolation Property
- CSS | border-inline-start-style Property
- CSS | column-rule-width Property
- CSS | word-spacing Property
- CSS | animation-delay Property
- CSS | margin-top Property
- CSS | border radius property
- CSS | grid Property
- CSS | font-size-adjust Property
- CSS | visibility Property
- CSS | Display property
- CSS | grid-template-columns Property
- CSS | height Property
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

