Note that there are some explanatory texts on larger screens.

plurals
  1. POAvoiding duplicated content for responsive page
    primarykey
    data
    text
    <p>I am currently working on a project dealing with responsive design, and the whole layout should be achieved using HTML and CSS. I know its possible to move content from one column layout to another, without duplicating content, using java script but is the same achievable using HTML and CSS?</p> <p>Take for example the following which would render like this on the desktop design</p> <pre><code>--page------------------- | -------- -------- | | |div 1 | | div 2| | | -------- -------- | ------------------------- </code></pre> <p>But then the designer has moved <code>div1</code> to below <code>div2</code> on the mobile design.</p> <pre><code>--page-------- | -------- | | |div 2 | | | -------- | | -------- | | |div 1 | | | -------- | -------------- </code></pre> <p>Obviously the natural way the block level elements will stack is the opposite way around.</p> <pre><code>--page------------------- | -------- -------- | | |div 1 | | div 2| | &lt;--- shown on desktop | -------- -------- | | -------- | | |div 1 | | &lt;--- hidden on desktop | -------- | ------------------------- --page-------- | -------- | | |div 1 | | &lt;--- hidden on mobile | -------- | | -------- | | |div 2 | | &lt;--- shown on mobile | -------- | | -------- | | |div 1 | | &lt;--- shown on mobile | -------- | -------------- </code></pre> <p>Using the above, the content of <code>div1</code> is duplicated. Is this bad for SEO? Clearly it's not optimal as the content appears twice in the DOM etc, so speed is affected (albeit possibly negligible).</p> <p>Are there any other solutions which I could implement which aren't javascript based which might alleviate the issue?</p> <p>Any advice would be much appreciated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload