property

border-image-width — CSS reference

Controls the painted border-image thickness, not the layout border width. Initial 1 (a multiplier of the corresponding border width), not inherited. Percentages use the border image area dimensions. Opposing widths are reduced proportionally if necessary to fit. The background may still paint beneath the part of the layout border not covered by the image.

Formal Syntax & Structure

css syntaxcss
[ <length-percentage [0,∞]> | <number [0,∞]> | auto ]{1,4}

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS visual effects lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}body{background:white} #a{position:relative; margin:20px;width:80px;height:60px;background:rgb(255,0,0);box-sizing:content-box} #a{border:10px solid green;border-image-source:linear-gradient(blue,blue);border-image-slice:1;border-image-width:5px}</style><body><div id="a" aria-hidden="true"></div><p>Decorative effect example.</p></body></html>
CSS Reference