Return to Snippet

Revision: 30337
at August 12, 2010 08:00 by viatropos


Initial Code
@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);
}

Initial URL
cross-browser-css-gradients-with-sass

Initial Description

                                

Initial Title
Cross Browser CSS Gradients with Sass

Initial Tags
css, html, browser

Initial Language
CSS