border-image-source
Specifies the image used as the border. You can use an actual image file (URL) or even a CSS gradient, which allows for advanced effects like gradient borders.
Quick example
.gradient-border {
border: 5px solid;
/* Uses a linear gradient as the border instead of a flat color */
border-image-source: linear-gradient(to right, #7c3aed, #ec4899);
border-image-slice: 1;
} Quick facts
Initial value
noneInherited
No
Applies to
all elements (except table elements when collapse)
Animation type
discrete
Values
none border-image-source Browser Support
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.
Safe to use without fallbacks.
15+
15+
6+
12+