Skip to content

Instantly share code, notes, and snippets.

@matthewpennell
Created September 7, 2015 14:22
Show Gist options
  • Save matthewpennell/772edcbf2c58b9af7504 to your computer and use it in GitHub Desktop.
Save matthewpennell/772edcbf2c58b9af7504 to your computer and use it in GitHub Desktop.
.sprite-source-foo, .sprite-source-bar, .sprite-source-baz {
background-image:url('source.png');
background-repeat:no-repeat;
}
.sprite-source-foo {
background-position: 0 0;
width: 25px;
height: 25px;
}
.sprite-source-bar {
background-position: 0 -25px;
width: 35px;
height: 15px;
}
.sprite-source-baz:hover {
background-position: -37px -12px;
width: 12px;
height: 12px;
}
.sprite-source-baz {
background-position: -25px -12px;
width: 12px;
height: 12px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment