/    Sign up×
Community /Pin to ProfileBookmark

google and display:none

I’ve heard google penalizes sites for using display:none.

This is a very useful design tool so google should be smart enough to simply ignore such content.

Just think of this accessibility thing:

<a id=’skipnav’ href=’#content’>skip navigation</a>
with the screen style a#skipnav {display:none}

If it does penalize sites then it’s doing a very stupid thing. But is it really doing that? There seem to be a lot of scare stories on blogs and stuff, but also people claiming googlebot doesn’t even look at the CSS.

to post a comment
CSS

6 Comments(s)

Copy linkTweet thisAlerts:
@BluetagpizzaJul 09.2005 — I would think that the Googlebot reads CSS. Google search has that cached feature which seems to store everything but the images. Does it make a difference in ranking? I really couldn't tell you.
Copy linkTweet thisAlerts:
@drhowarddrfineJul 09.2005 — Why would a search bot read the CSS? There is no content in it.
Copy linkTweet thisAlerts:
@BluetagpizzaJul 09.2005 — True, there is no content CSS but it would be useful for filtering out all the "display:none" keyword spamming. My point was that if you look at the cached version of a now non-existent site in Google, you will see that the internal style sheet appears to be included (meaning the GoogleBot saved it for some odd reason).
Copy linkTweet thisAlerts:
@amazing_andr3authorJul 10.2005 — My point was that if you look at the cached version of a now non-existent site in Google, you will see that the internal style sheet appears to be included (meaning the GoogleBot saved it for some odd reason).[/QUOTE] If you look at the cache, you will see a <base> tag, which means the CSS is a link relative to your site. I deleted the CSS on my site, cleared the browser cache, and then looked at the Google cache. It was not styled. Google does not seem to store the CSS, but of course that doesn't mean it doesn't read it.

My problem is that I have statistics for only 10 days (as I changed my traffic statistics system), otherwise I colud have seen whether Google has hit the CSS.

<edit>I think you could ban Google from the CSS files with robots.txt. What then?</edit>
Copy linkTweet thisAlerts:
@togaenJul 12.2005 — I wrote them once and asked that because I had a site that used 'display:none' extensively... they refused to tell me :rolleyes: .
Copy linkTweet thisAlerts:
@amazing_andr3authorJul 12.2005 — I have set myself an alert, so if googlebot visits the CSS i will get an email. Of course there's no way to tell if that is really googlebot, or something pretending to be googlebot. Or indeed googlebot could visit the CSS under a different name.

Anyway, I came to the conclusion that display:none has so many legitimate uses, that google has to be OK with it. Besides, there are other ways to hide content (placing something over it), that Googlebot cannot possibly discover without parsing and applying the CSS, which I'm sure would use too many system resources.

Now if you're hiding a huge chunk of text, or if you're hiding a keywords list and someone reports you to google ( http://www.google.com/contact/spamreport.html ), then perhaps a human will check the page and ban you.

So I think that if you don't use display:none, or other CSS hiding techniques to spam search engines, then you have nothing to fear.
×

Success!

Help @amazing_andr3 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...