Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Before you start you'll want to verify that both jQuery (or Zepto) and foundation.js are available on your page. These come with foundation package so just uncomment them in your footer or include them accordingly. </p> <pre><code>&lt;div class="section-container auto" data-section&gt; &lt;section class="active"&gt; &lt;p class="title" data-section-title&gt;&lt;a href="#panel1"&gt;Section 1&lt;/a&gt;&lt;/p&gt; &lt;div class="content" data-section-content&gt; &lt;p&gt;Content of section 1.&lt;/p&gt; &lt;/div&gt; &lt;/section&gt; &lt;section&gt; &lt;p class="title" data-section-title&gt;&lt;a href="#panel2"&gt;Section 2&lt;/a&gt;&lt;/p&gt; &lt;div class="content" data-section-content&gt; &lt;p&gt;Content of section 2.&lt;/p&gt; &lt;/div&gt; &lt;/section&gt; &lt;/div&gt; </code></pre> <p>The foundation documentation has all of the information for this : </p> <p><a href="http://foundation.zurb.com/docs/components/section.html#panel2" rel="nofollow">http://foundation.zurb.com/docs/components/section.html#panel2</a></p> <p>This will get you your section tabular headers. You then want to manage the content to be scrollable. </p> <pre><code>&lt;div class="content" data-section-content&gt; &lt;p&gt;Content of section 1.&lt;/p&gt; &lt;/div&gt; </code></pre> <p>This content here will be the area to work on, try adding a new class called <code>.scrollable</code></p> <p>Within this class use something like: </p> <pre><code>.scrollable{ overflow:scroll; } </code></pre> <p>You may want to add some more to this however this will get you started. Your HTML should now look like this : </p> <pre><code>&lt;div class="content scrollable" data-section-content&gt; &lt;p&gt;Content of section 1. This content will be scrollable when the content has exceeded that of the div size. &lt;/p&gt; &lt;/div&gt; </code></pre> <p>This this is what you are looking for. </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.
    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