border: 20px solid green;  
border-image-source: linear-gradient(lightgreen, darkgreen);
border-image-slice: 20;

box

(CSS3 Border Image at CSS Mine)