Skip to content

Instantly share code, notes, and snippets.

@magemore
Created April 25, 2012 04:53
Show Gist options
  • Save magemore/2486522 to your computer and use it in GitHub Desktop.
Save magemore/2486522 to your computer and use it in GitHub Desktop.
Replacing the title text with a logo – text-indent – text-indent
h1 {
text-indent:-9999px;
margin:0 auto;
width:400px;
height:100px;
background:transparent url("images/logo.jpg") no-repeat scroll;
}
@magemore
Copy link
Author

This code is for when you need to hide the title text in the header of your website and replace it with your logo image instead – but still maintains the text of your website’s title for SEO (search engine optimization) purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment