how to give linear gradient to border code example
Example 1: css gradient border
box-sizing: content-box;
border-width: 8px;
border-style: solid;
border-image: linear-gradient(to right bottom, #260B3C, #a053df);
border-image-slice: 1;
Example 2: gradient border with border radius
.rounded-corners-gradient-borders {
width: 300px;
height: 80px;
border: double 4px transparent;
border-radius: 80px;
background-image: linear-gradient(white, white), radial-gradient(circle at top left, #f00,#3020ff);
background-origin: border-box;
background-clip: content-box, border-box;
}
Example 3: linear gradient border
div-border-and-content-background {
border-top: double 5px transparent;
background-image: linear-gradient(white,white), linear-gradient(to right, grey, black);
background-clip: padding-box, border-box;
background-origin: border-box;
}