Note that there are some explanatory texts on larger screens.

plurals
  1. POHide\show content goes over other spoiler buttons
    primarykey
    data
    text
    <p>I have made some spoilers that when you click on them, it will slide some information</p> <p>So I clicked on spoiler1, and it did slide it but weirdly under the other spoilers..</p> <p>like this:</p> <p><a href="http://gyazo.com/4571423534e2442dc960d119c668dfa8" rel="nofollow">http://gyazo.com/4571423534e2442dc960d119c668dfa8</a></p> <p>Why does it do that and how do I fix it so the spoilers that are under the current spoiler im opening will slide down under the content?</p> <p>My code:</p> <pre><code> &lt;div id="container"&gt; &lt;div class="spoiler1"&gt;&lt;span id="title1"&gt;This is Test&lt;/div&gt; &lt;span class="hide1"&gt;testttttttttttttttttttttt&lt;/span&gt;&lt;!-- This is what opens after clicking on spoiler --&gt; &lt;br /&gt;&lt;br /&gt; &lt;div class="spoiler2"&gt;&lt;span id="title1"&gt;This is Test&lt;/div&gt; &lt;br /&gt;&lt;br /&gt; &lt;div class="spoiler3"&gt;&lt;span id="title1"&gt;This is Test&lt;/div&gt; &lt;br /&gt;&lt;br /&gt; &lt;div class="spoiler4"&gt;&lt;span id="title1"&gt;This is Test&lt;/div&gt; &lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt; &lt;/div&gt; &lt;script type="text/javascript"&gt; $(document).ready(function(){ $(".hide1").hide(); $(".spoiler1").show(); $('.spoiler1').click(function(){ $(".hide1").slideToggle(); }); }); &lt;/script&gt; </code></pre> <p>CSS:</p> <pre><code>#title1 { color: #1794c8; position: relative; top: 10px; left: 10px; } .spoiler1{ font-size: 16px; background-color: #c0e6d2; border: 1px solid #a7c8b7; height: 45px; width: 530px; position: absolute; text-shadow: 0px 1px 0px #f4f4f4; filter: dropshadow(color=#fff, offx=0, offy=1); z-index:1; } .spoiler2{ font-size: 16px; background-color: #c0e6d2; border: 1px solid #a7c8b7; height: 45px; width: 530px; position: absolute; text-shadow: 0px 1px 0px #f4f4f4; filter: dropshadow(color=#fff, offx=0, offy=1); } .spoiler3{ font-size: 16px; background-color: #c0e6d2; border: 1px solid #a7c8b7; height: 45px; width: 530px; position: absolute; text-shadow: 0px 1px 0px #f4f4f4; filter: dropshadow(color=#fff, offx=0, offy=1); } .spoiler4{ font-size: 16px; background-color: #c0e6d2; border: 1px solid #a7c8b7; height: 45px; width: 530px; position: absolute; text-shadow: 0px 1px 0px #f4f4f4; filter: dropshadow(color=#fff, offx=0, offy=1); } </code></pre> <p>How do I fix this? :/</p> <p>Thank you.</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.
 

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