Is hiding content with JavaScript or "text-indent: -9999px" bad for SEO?

Posted by Samuel on Pro Webmasters See other posts from Pro Webmasters or by Samuel
Published on 2012-04-15T21:05:06Z Indexed on 2012/04/15 23:46 UTC
Read the original article Hit count: 484

Filed under:
|
|
|

So apparently hiding content using "display: none" is bad for SEO and seen by googlebot as being deceptive. This according to a lot of the posts I read online and questions even on this site.

But what if I hide keyword rich text using javascript? A jquery example:

$(function() {
   $('#keywordRichTextContainer').hide();
});

or using visibility hidden:

$(function() {
   $('#keywordRichTextContainer').css({
      visibility: 'hidden',
      position: 'absolute'
   });
});

Would any of these techniques cause my site to be penalized? If googlebot can't read javascript then if I'm hiding through js it shouldn't know right?

What about using "text-indent: -9999px"?

© Pro Webmasters or respective owner

Related posts about seo

Related posts about google