Return to Snippet

Revision: 30334
at August 12, 2010 07:16 by viatropos


Initial Code
@mixin shadow($color: #333333) {
  -moz-box-shadow: 0px 1px 2px $color;
  -webkit-box-shadow: 0px 1px 2px $color;
  box-shadow: 0px 1px 2px $color;
  -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=90, Color='$color')";
  filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=90, Color='$color');
}

.shadow {
  @include shadow(#111111);
}

Initial URL
cross-browser-css-box-shadow-with-sass

Initial Description

                                

Initial Title
Cross Browser CSS Box Shadow with Sass

Initial Tags
css, html, browser

Initial Language
CSS