Skip to content

Instantly share code, notes, and snippets.

@omurphy27
Created March 13, 2013 04:04
Show Gist options
  • Save omurphy27/5149301 to your computer and use it in GitHub Desktop.
Save omurphy27/5149301 to your computer and use it in GitHub Desktop.
HTML CSS Styling Logo Image and Hiding Logo Text
/*Here's the html for the logo
<div class="header">
<h1 class="logo" ><a href="" >Magazine</a></h1>
</div>
Here's the CSS for the Logo*/
.header h1.logo { margin: 7px 0 0 0; float: left; }
.header h1.logo a {
width: 250px; height: 49px; display: block;
background: url(../images/sprite.png) no-repeat 0 0;
/* the old way was including text-indent: -9999px; but the new way is as seen below */
font: 0/0 a;
text-shadow: none;
color: transparent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment