Thursday, April 9, 2015

Hide H1 Text for Logo - CSS Snippet

Hide H1 Text for Logo - CSS Snippet

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.

h1 {
text-indent: -9999px;
margin: 0 auto;
width: 320px;
height: 85px;
background: transparent url("images/logo.png") no-repeat scroll;
}
Disqus Comments