Skip to content

Instantly share code, notes, and snippets.

@thomasjbradley
Last active October 11, 2015 12:07
Show Gist options
  • Save thomasjbradley/3856091 to your computer and use it in GitHub Desktop.
Save thomasjbradley/3856091 to your computer and use it in GitHub Desktop.
css: svg to png
.icon {
background: transparent url("../img/icon.svg") no-repeat left top;
}
/* Depends on Modernizr */
.no-inlinesvg .icon {
background-image: url("../img/icon.png");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment