The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. Display: none

    Display: none

    Technical SEO Issues
    4 4 814
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • seozachz
      seozachz last edited by

      A prominent SEO consultant recently told me that using display:none in the css is still a bad idea.  We built a simple drop down menu using widely used jquery techniques and it uses display:none to slideToggle the menu.

      Does anyone else think this is a bad idea?  If so, how should I change it since just about every jquery drop down I come across uses the slideToggle/display:none.

      1 Reply Last reply Reply Quote 0
      • AdoptionHelp
        AdoptionHelp last edited by

        Conventional wisdom says this is a bad idea because its a technique used by black-hats to stuff keywords into their documents. See:

        http://www.mattcutts.com/blog/seo-mistakes-unwise-comments/

        http://stackoverflow.com/questions/753951/seo-is-h1-tag-thats-hidden-using-displaynone-given-prominence-by-search-engin

        However, for JQuery and things like menu's and screen reader links, Google appears to know the difference. See:

        http://www.google.com/support/forum/p/Webmasters/thread?tid=50f9a4942ac605ec&hl=en

        The takeaway is you can use this, and its unlikely to get your site penalized. But be careful that what you're doing is both (a) common practice and (b) couldn't get caught in a spam finding algorithm. If you are in MLM or pharmaceuticals or something that often gets associated with spam, you'll want to avoid using these techniques. If there's no way your site could be considered spam and you're using display:none legitimately, then you'll be safe.

        1 Reply Last reply Reply Quote 1
        • john4math
          john4math last edited by

          Using display:none is fine.  There's JavaScript on the page that will make those items display when the users takes some action on the menu.  Google has some way of reading the JavaScript to see what may be displayed, and at this point, I'm sure they're very good at detecting these types of menus.  I don't think you can't make a menu like that without using it, and tons of sites use them.

          Obviously, you shouldn't use display:none to cloak text on the page, when no user action can get that text to be displayed.

          1 Reply Last reply Reply Quote 1
          • RichardVaughan
            RichardVaughan last edited by

            I'd suggest checking that any jquery solution hides stuff with display:none after the page has loaded. Essentially is the content/menu fully visible when you turn javascript off and load the page? (regardless of how horrific the display looks?)

            Bear in mind that Google also advises against things like display:none for implementation of things like microformats.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Accessibility / display none
              MattRoney
              MattRoney
              0
              2
              151

            • Google and responsive content in display:none CSS
              KristinaKledzik
              KristinaKledzik
              0
              3
              5.7k

            • Page Title Displaying differently on Google
              KristinaKledzik
              KristinaKledzik
              0
              15
              211

            • Rich Snippets Inconsistent Display
              OrionGroup
              OrionGroup
              1
              2
              229

            • Site is not displaying in Search Engines
              tpt.com
              tpt.com
              0
              7
              171

            • Getting a video displaying a lightbox indexed
              GManSEO
              GManSEO
              0
              3
              589

            • Page Title Not Displayed in SERPS
              KeriMorgret
              KeriMorgret
              0
              3
              610

            • Displaying static content - risky?
              Highland
              Highland
              0
              2
              537

            Get started with Moz Pro!

            Unlock the power of advanced SEO tools and data-driven insights.

            Start my free trial
            Products
            • Moz Pro
            • Moz Local
            • Moz API
            • Moz Data
            • STAT
            • Product Updates
            Moz Solutions
            • SMB Solutions
            • Agency Solutions
            • Enterprise Solutions
            • Digital Marketers
            Free SEO Tools
            • Domain Authority Checker
            • Link Explorer
            • Keyword Explorer
            • Competitive Research
            • Brand Authority Checker
            • Local Citation Checker
            • MozBar Extension
            • MozCast
            Resources
            • Blog
            • SEO Learning Center
            • Help Hub
            • Beginner's Guide to SEO
            • How-to Guides
            • Moz Academy
            • API Docs
            About Moz
            • About
            • Team
            • Careers
            • Contact
            Why Moz
            • Case Studies
            • Testimonials
            Get Involved
            • Become an Affiliate
            • MozCon
            • Webinars
            • Practical Marketer Series
            • MozPod
            Connect with us

            Contact the Help team

            Join our newsletter
            Moz logo
            © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
            • Accessibility
            • Terms of Use
            • Privacy