Forum Moderators: not2easy
I am sure that this question has been asked many times before but I am unable to find an up to date answer to this question...
Is Google yet capable of reading external style sheet files?
Checking my logs and there is no recorded access of my stylesheet file being accessed by the Google Bot.
However I wish to use the display:none property in an external stylesheet to hide content depending on a users choice/preference. I don't wish to do this to increase my search engine rankings and this hidden text won't be stuffed with keywords - its just to make my pages simpler for me when coding. But at the same time I don't want the site to be penalised either.
Can you let me have your thoughts on this if possible please?
Thanks
Caz
I *think* as part of Google Algo that they may very well try to fetch a stylesheet for further reading *if* the site it's crawling also raises some other flags.
I do not believe it can or ever will simply fetch a stylesheet and parse it for the words
display: none; or visibility: hidden; or z-index: -9999px; etc.. the Cascade and Specificty would make it very hard for them to put it all in context based on a single rule and besides there are very many legitimate uses for such rules. If anything they, Google, might just get enough flags from various sources of their algo, not just the CSS, to warrant a hand check on a site. So if you're using it legitimately all will be well, regardless of if the stylesheet is read or not.
There's a lot of FUD promoted about stylesheet properties and hidden text, but common sense always prevails ;)
Google themselves are using an image replacement technique which uses the word "hidden" in the CSS
hth
I think the official Google point of view is "do not cheat". So focus on your visitors and give them the best experience.
An example of today (Italics are obfuscated to anonymize it all):
[i]Goolge owned IP[/i] - - [10/Jun/2008:[i]time[/i] +0200] "GET [i]file.css[/i] HTTP/1.1" 200 [i]size[/i] "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" I've never seen GoogleBot download a CSS file mentioned in a conditional comment, but the others on that site: they all get touched every once in a while.
I wish to use the display:none property in an external stylesheet to hide content depending on a users choice/preference.
This is a common technique to make a page dynamic and more usable. For Google to penalise a page let alone an entire site for this technique would be very wrong IMO. I would have thought/hoped that Google would at worst simply ignore such (hidden) content? (Which by the sound of it is OK by you?) If Google was to penalise sites for simply toggling content the web would not be a better place. As SuzyUK says... common sense I reckon.
There have been reports of Googlebot fetching some stylesheets
I have CSS, JavaScript and images blocked in robots.txt and GoogleBot never takes them.
But the GooglePlex does.
Every so often a single CSS file, or perhaps a JavaScript file, or a few images, is fetched from my site by a client using a Google IP, often masquerading as a Firefox browser, as part of an apparently automated quality control procedure.
The CSS and JavaScript files do not exist in isolation - they require context to be meaningful - and I assume Google matches them with particular HTML pages. But the various files are not fetched together as they would be by a human viewer.
Google doing quality control is no surprise, though, and is fine by me.
...