Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Here is the whole code:</p> <pre><code> &lt;style type="text/css"&gt; .wrapper{ max-width:613px; float:left; position:relative; } .new { border: solid 1px #ddd; padding: 5px; float:left; max-width:660; min-width:320px; } .item{ width:120px; padding:10px; display:block; background-color:#CCC; float:left; margin:5px; } .content{ padding:10px; height:80px; visibility:hidden; } .item:hover &gt; .content{ } .full{ position:absolute; width:100%; display:block; height:100px; background-color:#666; left:0px; } &lt;/style&gt; &lt;script type='text/javascript'&gt;//&lt;![CDATA[ window.addEvent('load', function() { (function(){ var wrap, overview = document.getElement('div.overview'); overview.getElements('div.item').each(function(a, i){ if (i % 4 == 0){ wrap &amp;&amp; overview.adopt(wrap); wrap = new Element('div.new'); } wrap.adopt(a); }); overview.adopt(wrap); }()); }); window.addEvent('domready', function() { $$('.item').each(function(el,ind){ new Fx.Slide($$('.content')[ind]).toggle(); el.addEvent('click', function(event){ event.stop(); var myVerticalSlide = new Fx.Slide($$('.content')[ind]).toggle(); }); }) });//]]&gt; &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="wrapper"&gt; &lt;div class="overview"&gt; &lt;div class="item"&gt;Test1 &lt;div class="content"&gt; &lt;div class="full"&gt; &lt;p&gt;Content1&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="item"&gt;Test2 &lt;div class="content"&gt; &lt;div class="full"&gt; &lt;p&gt;Content2&lt;/p&gt; &lt;/div&gt; &lt;/div&gt;&lt;/div&gt; &lt;div class="item"&gt;Test3 &lt;div class="content"&gt; &lt;div class="full"&gt; &lt;p&gt;Content3&lt;/p&gt; &lt;/div&gt; &lt;/div&gt;&lt;/div&gt; &lt;div class="item"&gt;Test4 &lt;div class="content"&gt; &lt;div class="full"&gt; &lt;p&gt;Content4&lt;/p&gt; &lt;/div&gt; &lt;/div&gt;&lt;/div&gt; &lt;div class="item"&gt;Test5 &lt;div class="content"&gt; &lt;div class="full"&gt; &lt;p&gt;Content5&lt;/p&gt; &lt;/div&gt; &lt;/div&gt;&lt;/div&gt; &lt;div class="item"&gt;Test6 &lt;div class="content"&gt; &lt;div class="full"&gt; &lt;p&gt;Content6&lt;/p&gt; &lt;/div&gt; &lt;/div&gt;&lt;/div&gt; &lt;div class="item"&gt;Test7 &lt;div class="content"&gt; &lt;div class="full"&gt; &lt;p&gt;Content7&lt;/p&gt; &lt;/div&gt; &lt;/div&gt;&lt;/div&gt; &lt;div class="item"&gt;Test8 &lt;div class="content"&gt; &lt;div class="full"&gt; &lt;p&gt;Content8&lt;/p&gt; &lt;/div&gt; &lt;/div&gt;&lt;/div&gt; &lt;div class="item"&gt;Test9 &lt;div class="content"&gt; &lt;div class="full"&gt; &lt;p&gt;Content9&lt;/p&gt; &lt;/div&gt; &lt;/div&gt;&lt;/div&gt; &lt;div class="item"&gt;Test10 &lt;div class="content"&gt; &lt;div class="full"&gt; &lt;p&gt;Content10&lt;/p&gt; &lt;/div&gt; &lt;/div&gt;&lt;/div&gt; &lt;div class="item"&gt;Test11 &lt;div class="content"&gt; &lt;div class="full"&gt; &lt;p&gt;Content11&lt;/p&gt; &lt;/div&gt; &lt;/div&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>The other thing is, when i click on teh first div, it open, after that, when i click on the second div it open too, but the first div should close, when i click on the second div.</p>
 

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