Created
March 13, 2013 04:04
-
-
Save omurphy27/5149301 to your computer and use it in GitHub Desktop.
HTML CSS Styling Logo Image and Hiding Logo Text
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
/*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