Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I believe <a href="http://jsfiddle.net/kKz8y/" rel="nofollow">this fiddle</a> is what you're looking for.</p> <p>The problem is in your HTML and CSS.</p> <p>Use containers to divide the content and style these containers.</p> <p>I've simplified the classes, etc it's easier to understand. </p> <p>HTML</p> <pre><code>&lt;div id="featurelist_2_wrap"&gt; &lt;div class="spoiler"&gt; &lt;span class="feature"&gt;Networks&lt;/span&gt; &lt;div class="hide"&gt;&lt;span class="featurelist_3-text-margin"&gt;We have a very secure system, including secure logging in,&lt;br&gt; management, balance management and more.&lt;br&gt; We do a SQL backup every hour to protect us from our&lt;br&gt; data being lost.&lt;/span&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="spoiler"&gt;&lt;span class="feature"&gt;Networks&lt;/span&gt; &lt;div class="hide"&gt;&lt;span class="featurelist_3-text-margin"&gt;We have a very secure system, including secure logging in,&lt;br&gt; management, balance management and more.&lt;br&gt; We do a SQL backup every hour to protect us from our&lt;br&gt; data being lost.&lt;/span&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="spoiler"&gt;&lt;span class="feature"&gt;Networks&lt;/span&gt; &lt;div class="hide"&gt;&lt;span class="featurelist_3-text-margin"&gt;We have a very secure system, including secure logging in,&lt;br&gt; management, balance management and more.&lt;br&gt; We do a SQL backup every hour to protect us from our&lt;br&gt; data being lost.&lt;/span&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>CSS</p> <pre><code>.spoiler { position:relative; float:left; } .feature { display:block; background-color: #C0E6D2; border: 1px solid #A7C8B7; font-size: 16px; line-height:45px; text-shadow: 0 1px 0 #F4F4F4; width: 530px; } .hide { display:none; } </code></pre> <p>Javascript</p> <pre><code>$('.spoiler').click(function() { $(this).find('.hide').slideToggle(); }) </code></pre>
 

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