/ Published in: CSS
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
@mixin gradient($first, $second) { background: $second; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$first', endColorstr='$second'); background: -webkit-gradient(linear, left top, left bottom, from($first), to($second)); background: -moz-linear-gradient(top, $first, $second); } .gradient { @include gradient(black, white); }
URL: cross-browser-css-gradients-with-sass