Skip to content

Instantly share code, notes, and snippets.

@stephenway
Created April 15, 2010 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephenway/367278 to your computer and use it in GitHub Desktop.
Save stephenway/367278 to your computer and use it in GitHub Desktop.
Sass Position Mixin
@mixin position($type: relative, $top, $right, $bottom, $left, $z) {
position: $type;
top: $top;
right: $right;
bottom: $bottom;
left: $left;
z-index: $z;
}
@import "position";
h1 {
@include position(relative, 10px, 30px, 10px, 30px);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment