Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you want to save a lot of time, you should do it with jQuery. Try this <a href="http://jsfiddle.net/QXRVb/" rel="nofollow">http://jsfiddle.net/QXRVb/</a> sollution. In that example, I didn't preferd to resizing divs. I used Z-indexes and jQuery animate to move them. In that way its easier to make a right position for them.</p> <pre><code>&lt;style&gt; #promo{ width:900px; height:300px; position:absolute; top:0px; left:0px; overflow:hidden; } #oneP{ width:600px; height:300px; position:absolute; top:0px; left:0px; background:#999; z-index:1; } #twoP{ width:600px; height:300px; position:absolute; top:0px; left:150px; background:#ddd; z-index:0; } #threeP{ width:600px; height:300px; position:absolute; top:0px; left:750px; background:#666; z-index:1; } &lt;/style&gt; &lt;html&gt; &lt;div id="promo"&gt; &lt;div id="oneP"&gt; &lt;/div&gt; &lt;div id="twoP"&gt; &lt;/div&gt; &lt;div id="threeP"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/html&gt; &lt;script&gt; $('#oneP').mouseover(function() { $('#oneP').animate({ left: 0 },200); $('#threeP').animate({ left: 750 },200); $('#twoP').animate({ left: 450 },200); }); $('#twoP').mouseover(function() { $('#oneP').animate({ left: -450 },200); $('#threeP').animate({ left: 750 },200); $('#twoP').animate({ left: 150 },200); }); $('#threeP').mouseover(function() { $('#threeP').animate({ left: 300 },200); $('#oneP').animate({ left: -450 },200); $('#twoP').animate({ left: -150 },200); });​ &lt;/script&gt;` </code></pre> <p>With this method you can easily put image tag inside divs.</p>
    singulars
    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. VO
      singulars
      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