OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 div { | 4 div { |
5 background-color: blue; | 5 background-color: blue; |
6 border: 25px solid black; | 6 border: 25px solid black; |
7 width: 50px; | 7 width: 50px; |
8 height: 50px; | 8 height: 50px; |
9 margin: 10px; | 9 margin: 10px; |
10 } | 10 } |
11 | 11 |
12 .cornersOnly { | 12 .cornersOnly { |
13 -webkit-border-image: -webkit-gradient(linear, left top, left bottom
, from(#00abeb), to(#fff), color-stop(0.5, #fff), color-stop(0.5, #66cc00)) 50 5
0 50 50 repeat repeat; | 13 -webkit-border-image: -webkit-gradient(linear, left top, left bottom
, from(#00abeb), to(#fff), color-stop(0.5, #fff), color-stop(0.5, #66cc00)) 50 5
0 50 50 repeat repeat; |
14 } | 14 } |
15 | 15 |
16 .horizontalOnly { | 16 .horizontalOnly { |
17 -webkit-border-image: -webkit-gradient(linear, left top, left bottom
, from(#00abeb), to(#fff), color-stop(0.5, #fff), color-stop(0.5, #66cc00)) 50 2
5 50 25 repeat repeat; | 17 -webkit-border-image: -webkit-gradient(linear, left top, left bottom
, from(#00abeb), to(#fff), color-stop(0.5, #fff), color-stop(0.5, #66cc00)) 50 2
5 50 25 repeat repeat; |
18 } | 18 } |
19 | 19 |
20 .verticalOnly { | 20 .verticalOnly { |
21 -webkit-border-image: -webkit-gradient(linear, left top, left bottom
, from(#00abeb), to(#fff), color-stop(0.5, #fff), color-stop(0.5, #66cc00)) 25 5
0 25 50 stretch stretch; | 21 -webkit-border-image: -webkit-gradient(linear, left top, left bottom
, from(#00abeb), to(#fff), color-stop(0.5, #fff), color-stop(0.5, #66cc00)) 25 5
0 25 50 stretch stretch; |
22 } | 22 } |
23 </style> | 23 </style> |
24 </head> | 24 </head> |
25 <body> | 25 <body> |
26 <div class="cornersOnly"></div> | 26 <div class="cornersOnly"></div> |
27 <div class="horizontalOnly"></div> | 27 <div class="horizontalOnly"></div> |
28 <div class="verticalOnly"></div> | 28 <div class="verticalOnly"></div> |
29 </body> | 29 </body> |
30 </html> | 30 </html> |
OLD | NEW |