Skip to content

Instantly share code, notes, and snippets.

@mchayka
Created October 7, 2012 19:17
Show Gist options
  • Save mchayka/3849288 to your computer and use it in GitHub Desktop.
Save mchayka/3849288 to your computer and use it in GitHub Desktop.
CSS: Image replacement
/*
* Image replacement
*/
.ir {
background-color: transparent;
border: 0;
overflow: hidden;
/* IE 6/7 fallback */
*text-indent: -9999px;
}
.ir:before {
content: "";
display: block;
width: 0;
height: 100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment