Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can use the following approach with pure CSS and no tables.</p> <p><strong><a href="http://jsfiddle.net/AbdiasSoftware/UDH57/" rel="nofollow noreferrer">See online demo here</a></strong>.</p> <p>Result:</p> <p><img src="https://i.stack.imgur.com/Us99S.png" alt="Example"></p> <p>It means however that you need to change the document structure a little (I am using HTML5 elements but this can easily be changed into normal divs if required) - as you can see the structure is fairly simple:</p> <pre><code>&lt;header&gt;Header &lt;nav&gt;Menu&lt;/nav&gt; &lt;/header&gt; &lt;main&gt; &lt;div class="page"&gt; &lt;h3&gt;Page 1&lt;/h3&gt; scroll from main scrollbar .... &lt;/div&gt; &lt;div class="page"&gt; &lt;h3&gt;Page 2&lt;/h3&gt; scroll from main scrollbar .... &lt;/div&gt; &lt;/main&gt; &lt;footer&gt;Footer&lt;/footer&gt; </code></pre> <p>Now it's just a matter of styling this so that you can use main scroll-bar to scroll "both" pages. The essential class in this context is:</p> <pre><code>.page { float:left; margin:70px 10px 50px 10px; border:1px solid #000; width:45%; } </code></pre> <p>The important part with the <code>page</code> class is that its top and bottom margin is set to match header and footer. This is what makes the two pages visible even if the header and footer are fixed.</p> <p>The rest of the CSS is just for example:</p> <pre><code>html, body { width:100%; height:100%; margin:0; padding:0; } header { position:fixed; top:0; width:100%; height:70px; font:32px sans-serif; color:#fff; background:#555; } nav { position:absolute; bottom:0; font:12px sans-serif; } footer { position:fixed; width:100%; bottom:0; height:50px; background:#555; } </code></pre>
    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.
    1. This table or related slice is empty.
    1. VO
      singulars
      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