1.bordertest {
2 height:300px;
3 width:300px;
4 border-top:30px solid #c4268c;
5 background:#000;
6 position:relative;
7 margin:1em;
8}
9.bordertest:first-child:before {
10 content:'';
11 position:absolute;
12 width:100%;
13 height:30px;
14 background:linear-gradient(to left, #c4268c, #9a0b72);
15 top:-30px;
16 left:0;
17}
18