Skip to content

Instantly share code, notes, and snippets.

@kovaldn
Created April 1, 2013 08:22
Show Gist options
  • Save kovaldn/5283805 to your computer and use it in GitHub Desktop.
Save kovaldn/5283805 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: 150%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment