border linear-gradient( to right, #100D2A, #1A1732 )} code example
Example: linear gradient border
div-border-and-content-background {
border-top: double 5px transparent;
/* first gradient is for card background, second for border background */
background-image: linear-gradient(white,white), linear-gradient(to right, grey, black);
background-clip: padding-box, border-box;
background-origin: border-box;
}