Css Visibility : hidden

Discussion in 'CSS' started by nickjason, Jul 24, 2009.

  1. #1
    Can search engines detect/penalize if I apply visibility:hidden through an external style sheet? (I'm not using this for spammy purposes - I just have some text and links in an Iframe that I'm afraid will not be recognized by the spiders, and I'd like to compensate for this with some hidden content.)

    On a more general level, can search engines read CSS, inline or external?
     
    nickjason, Jul 24, 2009 IP
  2. JahRasta311

    JahRasta311 Peon

    Messages:
    201
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    lol wouldn't the solution be to not use an iframe?
     
    JahRasta311, Jul 24, 2009 IP
  3. geoiss2004

    geoiss2004 Guest

    Messages:
    1,454
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    0
    #3
    well for a start you would use "display: none;" as visibility is olllld now.

    and as long as you're not using it to hide keywords, you will be fine.
     
    geoiss2004, Jul 24, 2009 IP
  4. nonameperson

    nonameperson Peon

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    google don't read and index anything what have display: none or visibility: hidden, but I don't know does google penalize usage of hidden elements...
     
    nonameperson, Jul 24, 2009 IP
  5. geoiss2004

    geoiss2004 Guest

    Messages:
    1,454
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    0
    #5
    of course Google can see a hidden DIV - it doesn't disappear from the markup just because it's set to display none.
     
    geoiss2004, Jul 25, 2009 IP
  6. nonameperson

    nonameperson Peon

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    of course, can see but don't read.
     
    nonameperson, Jul 25, 2009 IP
  7. geoiss2004

    geoiss2004 Guest

    Messages:
    1,454
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    0
    #7
    are you telling me that google does not index hidden content? if you are, you're completely wrong!
     
    geoiss2004, Jul 27, 2009 IP
  8. nickjason

    nickjason Peon

    Messages:
    414
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #8
    how he could be wrong?
     
    nickjason, Jul 27, 2009 IP
  9. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #9
    View the page in Lynx. That is how Google "sees" the page. Google does not support css, javascript, or images. If you don't have Lynx (why don't you?), in your regular browser, disable javascript and images, and turn off css.

    @matt540: Visibility and display are two very different properties, and are orthogonal.

    cheers,

    gary
     
    kk5st, Jul 27, 2009 IP
  10. geoiss2004

    geoiss2004 Guest

    Messages:
    1,454
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    0
    #10
    have you never seen tabbed navigation on a website? i.e. http://mdmsonline.co.uk/services.html

    so according to that logic, two of those tabs will not get indexed because they are not being displayed. rubbish!
     
    geoiss2004, Jul 28, 2009 IP
  11. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #11
    They will get indexed. However, Google is not the only blind visitor to your site.

    Using display: none and visibility: hidden for things like menus is a Bad Idea because most screen readers are used on regular Plain Old Computers through Regular Plain Old Browsers, most of which normally detect and run CSS and Javascript and images. The reader reads via the browser, and most of the time (quirky exceptions) it will honour display: none and visibility: hidden. The text of those elements never gets loaded into the virtual buffer.

    For iframes, I haven't heard that google has a problem. Google has a problem with framesets, because while a browser is built to display the framesets, Googlebots are not. They don't go directly "into" a frame within a frameset.

    That said, somehow googlebots do get pages hidden inside framesets. I haven't figured out how, but I've seen the inner pages of a framed site I redid on google. But it's some indirect way, prolly accidentally through someone else's external link.
     
    Stomme poes, Jul 28, 2009 IP
  12. nickjason

    nickjason Peon

    Messages:
    414
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Absolutely correct.I m too on way to find ; how google boot do this.
     
    nickjason, Jul 30, 2009 IP
  13. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #13
    I think it's through external links somehow. I know the page I redid, which was originally in frames, had Google results for some of the inner pages... clicking on them revealed just that inner page without the surrounding frames, making it rather useless for visitors because they wouldn't get the navigation or sidebars or anything.

    So, you certainly don't want google indexing some lone frame. But an iframe, that's simple another document in a document, as an inline element, without a frameset, so as long as your main page has an anchor which links to the iframe, I would think Google could access that no problem. At least, I haven't seen a problem with a site we work with— our insurance form is presented on a scooter-selling site within their iframe. That way, our back-end can continue to do the calculations while the form is displayed on their page.
     
    Stomme poes, Jul 31, 2009 IP