Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I've made an example fiddle for you, what you just need is a wrapper div and a content div which is floated to right</p> <p><a href="http://jsfiddle.net/xU8Ke/1/" rel="nofollow">Demo</a></p> <p>I've changed some of the container div layout and basically you can wrap up the contents in your container</p> <p>HTML</p> <pre><code>&lt;div class="main_container"&gt; &lt;nav class="content_navigation"&gt; &lt;ul id="nav"&gt; &lt;li class="current"&gt;&lt;a href="#section-1"&gt;Section 1&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#section-2"&gt;Section 2&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#section-3"&gt;Section 3&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#section-4"&gt;Section 4&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#section-5"&gt;Section 5&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/nav&gt; &lt;div class="right_content"&gt; &lt;div class="section" id="section-1"&gt; &lt;strong&gt;Section 1&lt;/strong&gt; &lt;/div&gt; &lt;div class="section" id="section-2"&gt; &lt;strong&gt;Section 2&lt;/strong&gt; &lt;/div&gt; &lt;div class="section" id="section-3"&gt; &lt;strong&gt;Section 3&lt;/strong&gt; &lt;/div&gt; &lt;div class="section" id="section-4"&gt; &lt;strong&gt;Section 4&lt;/strong&gt; &lt;/div&gt; &lt;div class="section" id="section-5"&gt; &lt;strong&gt;Section 5&lt;/strong&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>CSS</p> <pre><code>html, body { height: 100%; width: 100%; } .main_container { width: 900px; min-width: 900px; margin: 0 auto; background: #ffffff; } .content_navigation { width: 205px; position: fixed; margin-top: 120px; } .right_content { float: right; width: 675px; border-left: 1px solid #252525; margin-top: 25px; } #nav { list-style: none; } #nav li { margin-bottom: 2px; } #nav a { background: #ededed; color: #666; display: block; font-size: 11px; padding: 5px 10px; text-decoration: none; text-transform: uppercase; } #nav a:hover { background: #dedede; } #nav .current a { background: #666; color: #ededed; } .current { background: red; } .section { border-bottom: 5px solid #ccc; padding: 20px; } .section p:last-child { margin-bottom: 0; } </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. 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