Last active
February 17, 2023 03:13
-
-
Save texxs/10898cca8949fc5eb3a6479c86848568 to your computer and use it in GitHub Desktop.
CSS - Logo And Text H1 Tag
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; | |
} | |
In the HTML doc you put the keyphrase you want to pimp inside the h1 html tag where you want the logo displayed (be sure the h1 tag is inside a container that positions it or it won't be visible) and only the logo will display, not the text (it will be off screen to the left about 9999 pixels. |
It feels like cheating because I left out a step here. in the HTML doc you put the keyphrase you want to pimp inside the h1 html tag where you want the logo displayed (be sure the h1 tag is inside a container that positions it or it won't be visible) and only the logo will display, not the text (it will be off screen to the left about 9999 pixels.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It feels like cheating for SEO but . . . I didn't make the rules . . .