Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Having an h1 with "real" text in it is just as good for SEO as having that h1 with an image background and the same text, but set to be indented to -9999px and ltr?

share|improve this question

migrated from stackoverflow.com Apr 29 '11 at 9:38

This question came from our site for professional and enthusiast programmers.

Why did you move it here? I was a stackoverflow text-book question. – Francisc Apr 29 '11 at 9:55
up vote 4 down vote accepted

For the most part, the search engines only look at text. Some of them do look at the CSS to see if the text is visible (either by display: none or background color ~ foreground color) so it is possible they will notice the -9999px and mark you down, but since it's a common technique it's unlikely.

In both approaches your code will look the same: <h1>My SEo Website</h1> The only difference should be your CSS. You must still use text for accessibility reasons.

share|improve this answer
Yup, the markup will look exactly the same. And yes setting negative indentation is common, I do hope search engines look to see if negative indenting goes with background image and thus doesn't penalize the page. Thank you. – Francisc Apr 29 '11 at 8:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.