Css Text Hiding

Discussion in 'HTML & Website Design' started by Silver89, Aug 3, 2007.

  1. #1
    Hi,

    I know that using invisible or hidden text is bad and can get your site penalized,

    but what about this?

    In your main.css you have

    .vis{display:none;}

    Then in your php file you use

    <div class="vis">Invisible Text Here</div>

    Would search engines pick up on this?
     
    Silver89, Aug 3, 2007 IP
  2. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The fact it is PHP makes no difference what so ever
     
    AstarothSolutions, Aug 3, 2007 IP
  3. uniqueasitis

    uniqueasitis Peon

    Messages:
    661
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes, php does not make a difference. Don't try invisible text, you could get into some serious trouble.
     
    uniqueasitis, Aug 3, 2007 IP
  4. Silver89

    Silver89 Notable Member

    Messages:
    2,243
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    205
    #4
    I didn't mean php was different from html, i just meant would using that in htmll be noticed by a search engine
     
    Silver89, Aug 3, 2007 IP
  5. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #5
    yes, the text is still in the HTML file just isnt displayed in a graphical web browser
     
    AstarothSolutions, Aug 3, 2007 IP
  6. Jezek

    Jezek Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I found this article on google:
    http://www.seroundtable.com/archives/006993.html
     
    Jezek, Aug 3, 2007 IP
  7. .me

    .me Peon

    Messages:
    73
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Nope. The hide class won't be noticed by search engines.

    Also, I don't think you will get banned or anything if you just hide lil bit of text . ;)
     
    .me, Aug 3, 2007 IP
  8. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #8
    If GoogleBot decides to ban people for CARING about people who use screen readers who take extra time on their layouts/sites (like myself) and make extraneous elements, offset them, providing CONTENT for people who cannot fully access it, then Google can blow me.

    Also, you should not use display:none for IR, either offset it using negative margins / pos relative / pos absolute, if you display:none it wont be readable in a screen reader.
     
    soulscratch, Aug 3, 2007 IP
  9. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Thank you soulscratch for echoing my sentiments exactly. However, you did forget to mention the Dark Side of this (as far as search engines are concerned). If you hide the text SPECIFICALLY to serve alternate content to the search engines that regular users wouldn't see, yoU can get your site de-listed.

    What do I mean? I mean hiding content that's not related to your Web page just to game the search engines. If you're selling baby clothes and you hide section of your page that contains keywords for Cialis, Viagra and so forth, there's going to be a problem, and you'll be paying the price for it.
     
    Dan Schulz, Aug 3, 2007 IP