Submit Your Article Forum Rules

Results 1 to 5 of 5

Thread: To display none or not to display none that is the question

  1. #1
    Senior Member caravan's Avatar
    Join Date
    May 2006
    Location
    Preston, Lancashire
    Posts
    124

    To display none or not to display none that is the question

    When coding a website I use css as a layout tool and strive to make the website as accessible as possible. I therefore will apply images to the div's as backgrounds. If an image includes a text of some sort such as a headline I will include a text version in the html but give it a class which gives it a display: none. The reason I do this is to quite rightly address accessibility issues and not as a means of spamming.

    After reading the following matt cutts post from a while back and having discussed things with a colleague I'm now wondering whether this way of working could potentially be harmful. Should I be using hard coded images with alt tags?

  2. #2
    WebProWorld MVP Dubbya's Avatar
    Join Date
    Nov 2006
    Location
    Steinbach, Manitoba
    Posts
    1,323

    Re: To display none or not to display none that is the question

    It's all about intent.

    Most sites that get banned are manually checked after the SE tosses a flag during the indexing process or when someone personally reports the spammer.

    If your intent is to provide information relative to the image, with the intent of increasing accessibility or to provide more detailed information, you've nothing to worry about.

    Worst case scenario, if the site were to get banned, you could send an email request for reinclusion, explain your intentions and ensure that the site meets inclusion guidelines.

    Now, if sole purpose of hiding layer information using "display:none" is to gain an advantage over your competition by spamming the SE's, well that's another story entirely.

    Tread softly and ask yourself if what you're doing could easily be mistaken as an obvious attempt to spam the SE's using "hidden text". If you think it's a little over the top, it probably is.

    .02

  3. #3
    Senior Member bj's Avatar
    Join Date
    Apr 2005
    Posts
    1,171

    Re: To display none or not to display none that is the question

    If you are using a legitimate css image replacement technique on ONE image for the header, then this is not going to bring a penalty. If you're doing it with 20 images it may raise a red flag. As Dubbya said, it's about intent.

    There are better and more legitimate ways to do this anyway. display: none; is not the best way. Just google "css accessible image replacement" and you'll come up with the top methods.

  4. #4
    WebProWorld MVP inertia's Avatar
    Join Date
    Apr 2006
    Posts
    1,194

    Re: To display none or not to display none that is the question

    The example that matt cutts has given does use a lot of image replacement and i have also seen lots of sites do this with their h1 tag but still perform well.
    My LinkedIn Profile -- Lancaster Builder

    Twitter: @mattbennettseo

  5. #5
    Senior Member datetopia's Avatar
    Join Date
    Dec 2006
    Posts
    139

    Re: To display none or not to display none that is the question

    You can hide it from JavaScript on page load and prevent automated detection of the hidden element.

    A human will probably understand your good intentions but not sure if crawling program will. You should avoid the possibility of being judged by a machine if you can.

Similar Threads

  1. Using Display NONE
    By subhzash in forum Search Engine Optimization Forum
    Replies: 18
    Last Post: 06-10-2009, 05:35 AM
  2. why won't my page display?
    By watto in forum Web Programming Discussion Forum
    Replies: 2
    Last Post: 06-22-2007, 05:14 AM
  3. pagerank display
    By chmohan in forum Google Discussion Forum
    Replies: 3
    Last Post: 12-14-2006, 12:39 PM
  4. using display:none with css
    By gellnsh in forum Graphics & Design Discussion Forum
    Replies: 6
    Last Post: 12-11-2005, 04:09 PM
  5. Need help with way to display Portfolio
    By wickywills in forum Web Programming Discussion Forum
    Replies: 0
    Last Post: 09-12-2005, 01:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •