Updated: 2026-07-11
βοΈ Border Image Settings
Visually generate CSS border-image with gradients and colors.
15px
15
0
ποΈ Live Preview
The box below uses border-image. Adjust parameters to see the effect.
Border Image
Live Preview
Live Preview
π» CSS Code
π CSS border-image Explained
The border-image shorthand lets you use images or gradients to create custom element borders. It includes:
border-image-sourceβ URL or gradient for the borderborder-image-sliceβ How to slice the border imageborder-image-widthβ The width of the border imageborder-image-outsetβ How far the border extendsborder-image-repeatβ stretch, repeat, or round
Gradient Borders
The most common use of border-image is creating gradient borders. Use linear-gradient() as the source with proper slice values for smooth gradient borders.