Posted By

viatropos on 08/12/10


Tagged

css html browser stylesheet transform SASS cross scss gradientf


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

caruso_g


Cross Browser CSS Gradients with Sass


 / Published in: CSS
 

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

  1. @mixin gradient($first, $second) {
  2. background: $second;
  3. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$first', endColorstr='$second');
  4. background: -webkit-gradient(linear, left top, left bottom, from($first), to($second));
  5. background: -moz-linear-gradient(top, $first, $second);
  6. }
  7.  
  8. .gradient {
  9. @include gradient(black, white);
  10. }

Report this snippet  

You need to login to post a comment.