How to hide repeated content from search engines with CSS?


Tags: html,css,seo

Problem :

I have a page structure for a website using fixed headers/footers around the main content. To keep things simpler for responsive design, I'm not using margins around the main content, I'm actually repeating the header/footer in the document - one in the fixed position, and once in the dynamic one. This means I don't need to worry about different heights on different devices.

However, I don't want the repeated content showing in search-engine results, so how can I hide it?



Solution :

CSS doesn't hide anything from search engines.

For good practice, you should consider getting back to only one header/footer.

How about duplicating the header and footer with Javascript? You could use the jQuery .clone() method for this purpose.

Most search engine don't execute Javascript for their crawling.


    CSS Howto..

    How to make span in bootstrap nav have width: 0px?

    How to create a sub folder on Page?

    How to set HTML table cell to inherit its size?

    How can I center just one element within a container?

    How can i include label-info from twitter boostrap in my own class definition?

    CSS - How do I float one element to the right inside the other div?

    Customizing ebay store HTML and CSS code (How to?)

    How does one change the colour of a div based on current time?

    How to replace css using jquery after user agent detection

    How to make triangle section separator [closed]

    How does CSS works under the hood? [closed]

    How to dynamically change CSS using JS

    How to make gridview in asp.net scrollable?

    HTML5/CSS: How to set the height of the page without considering the footer?

    How do I position a div below an image with changing height?

    How to hide div on swipe in Angular

    how to make this div margin to zero and more nature [closed]

    How to cancel/disable hover and active effects coming from another CSS library?

    if i clone an element, when i customize (css) that element how can customize also the element cloned?

    show/hide will not load

    Creating a responsive drupal 7 slideshow

    How make to flow around a triangular block?

    How to apply Css class to a row using datatables.js?

    How to get an input set to display block to fade in with css

    How to use a CSS for only one div and not the rest of the code?

    How to create a circle with text coming out of it like rays [closed]

    How to include a css stylesheet in Orchard module?

    how to get rid of the border-bottom by css?

    How do I differentiate between IE versions 6 to 10 using IE CSS Hacks?

    How to remove unnecessary margin on top?