Skip to content

Instantly share code, notes, and snippets.

@owlsky
Last active October 6, 2016 13:48
Show Gist options
  • Save owlsky/e34282678feb90e89d9e to your computer and use it in GitHub Desktop.
Save owlsky/e34282678feb90e89d9e to your computer and use it in GitHub Desktop.
CSS: A New CSS Image Replacement Technique
.logo a {
display: block;
width: 52px;
height: 52px;
background: url(../img/logo.jpg) 0 0 no-repeat;
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment