Skip to content

Instantly share code, notes, and snippets.

@danro
Created March 20, 2011 21:18
Show Gist options
  • Save danro/878690 to your computer and use it in GitHub Desktop.
Save danro/878690 to your computer and use it in GitHub Desktop.
CSS replace a block of text with an image
h1.someClass {
margin: 0; padding: 0;
width: 175px; height: 37px;
background: url('images/someClass.png') no-repeat;
}
h1.someClass span {
display: block;
width: 0;
height: 0;
overflow: hidden;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment