Treehouse: Grow your CSS skills. Land your dream job.

Does display: none; hurt SEO?

  • # December 3, 2010 at 10:40 am

    Hey, I’ve heard that using css to hide stuff might hurt SEO. Is that true? I need to hide widget titles, I can’t figure out how to remove them otherwise.

    # December 3, 2010 at 1:36 pm

    “As long as you aren’t trying to trick search engines in any way you shouldn’t encounter any problems using either visibility or block to show and hide an element.”

    # December 3, 2010 at 4:17 pm

    Hayley there other ways to hide. you can position off the screen (negatively), but really as long as you have your content [html], presentation [css], functionality [js] seperate you should be good SEO wise. so no inline styles setting something display:none

    # December 3, 2010 at 8:28 pm

    As long as you aren’t doing anything dubious and it helps the design of a site or has a sort of functionality to the site. I don’t think you should be in any immediate danger.

    # December 6, 2010 at 8:55 am

    Thanks a bunch, guys! That helped a lot :)

    # December 7, 2010 at 1:19 am

    You are very welcome! :)

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.