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; }
Re:Does the Google Bot index css hidden divs? yes.
by emp_ on Wednesday September 28, 2011 @02:45PM
(#3049306)
Indeed PE is a better approach, it's also important to mention that CSS is capable of doing full dropdown/tabs functionality without any javascript (taking advantage of the :hover selector), but I may just be nitpicking your examples more than your intentions.
Basically it has always been a bad idea to "hardcode" visibility for tabs/divs.
For example visit: http://adwords.google.com/support/aw/bin/static.py?hl=nl&... without javascript support. The content is hidden for everyone and pressing expand won't do anything.
Compare with: http://www.google.com/support/webmasters/bin/answer.py?hl=en... . Even without javascript support you can still see the examples, because those are only hidden if you have javascript support.