News for hackers. Stuff that matters.
Re:Does the Google Bot index css hidden divs? yes. by mike-cardwell on Wednesday September 28, 2011 @04:31PM (#3049767)
I like to use javascript to add a class of "with-js" to the body element immediately after the body tag. Then you can just use css to style everything dependent on javascript. For example:

  <body>
     <script type="text/javascript">document.body.className='with-js';</script>
Then in CSS you might do this if you want a certain element to disappear only if javascript is enabled:

  body.with-js #foo { display:none; }

There are no comments on this comment yet.