Created
April 25, 2012 04:53
-
-
Save magemore/2486522 to your computer and use it in GitHub Desktop.
Replacing the title text with a logo – text-indent – text-indent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h1 { | |
text-indent:-9999px; | |
margin:0 auto; | |
width:400px; | |
height:100px; | |
background:transparent url("images/logo.jpg") no-repeat scroll; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.