2

To modify the style of a component within a framework, I need to set the visibility of the parent container to hidden and the visibility of its child that contains the content to visible.

Is that bad practice for SEO? Do robots recognize that the text is visible even if its parent container is hidden? Or would it be seen as deceptive by Google (https://support.google.com/webmasters/answer/66353?hl=en ) ?

  • I thought that hiding a parent would hide everything in it? How is a child showing? – Stephen Ostermiller Nov 23 '19 at 17:14
  • 1
    I'm using the CSS visibility property. If the visibility is set to hidden: "the element box is invisible (not drawn), but still affects layout as norma. Descendants of the element will be visible if they have visibility set to visible " developer.mozilla.org/en-US/docs/Web/CSS/visibility – Marc Duluc Nov 23 '19 at 17:23
2

Based on the link you provide.

Are you being deceptive? Meaning are you hiding the parent element in order to achieve keyword stuffing of some sort? This is really bad and I would't do it.

You aren't being deceptive but again some text (that might contain keywords) is being hidden along with the parent element? This is bad and I would't risk it.

Do you want to hide the parent element that does not contain any text just for design purposes. You are good to go.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.