Created
May 24, 2013 13:12
-
-
Save trumball/5643407 to your computer and use it in GitHub Desktop.
Hiding H1 Text For Logo
I first noticed this technique being implemented on the old Digg layout. You can setup an H1 tag which also has your website’s name in plaintext for SEO purposes. But using CSS we can move this text so it isn’t visible, and replace it with a custom logo image.
This file contains hidden or 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: 320px; | |
height: 85px; | |
background: transparent url("images/logo.png") no-repeat scroll; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment