How bad is it to use display: none in CSS?
Posted
by
Andy
on Pro Webmasters
See other posts from Pro Webmasters
or by Andy
Published on 2010-07-21T11:03:22Z
Indexed on
2012/06/19
9:24 UTC
Read the original article
Hit count: 779
I've heard many times that it's bad to use display: none
for SEO reasons, as it could be an attempt to push in irrelevant popular keywords. A few questions:
- Is that still received wisdom?
- Does it make a difference if you're only hiding a single word, or perhaps a single character?
- If you should avoid any use of it, what are the preferred techniques for hiding (in situations where you need it to become visible again on certain conditions)?
Some references I've found so far:
Matt Cutts from 2005 in a comment
If you're straight-out using CSS to hide text, don't be surprised if that is called spam. I'm not saying that mouseovers or DHTML text or have-a-logo-but-also-have-text is spam; I answered that last one at a conference when I said "imagine how it would look to a visitor, a competitor, or someone checking out a spam report. If you show your company's name and it's Expo Markers instead of an Expo Markers logo, you should be fine. If the text you decide to show is 'Expo Markers cheap online discount buy online Expo Markers sale ...' then I would be more cautious, because that can look bad."
And in another comment on the same article
We can flag text that appears to be hidden using CSS at Google. To date we have not algorithmically removed sites for doing that. We try hard to avoid throwing babies out with bathwater.
(My emphasis)
Eric Enge said in 2008
The legitimate use of this technique is so prevalent that I would rarely expect search engines to penalize a site for using the
display: none
attribute. It’s just very difficult to implement an algorithm that could truly ferret out whether the particular use ofdisplay: none
is meant to deceive the search engines or not.
Thanks in advance,
Andy
© Pro Webmasters or respective owner