Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You shouldn't have much trouble just so long as the item display is just for show (i.e., I doubt it can be clickable) and can be placed as a child of the element triggering the event. </p> <ul> <li><a href="http://jsfiddle.net/bzwPQ/2/" rel="nofollow">JS Fiddle demo</a></li> </ul> <p><strong>HTML:</strong></p> <pre><code>&lt;div class='container'&gt; &lt;ul class='mylist1'&gt; &lt;li id='item1'&gt; item1 &lt;div class='dynamic-content' style='background:blue;'&gt; Some content. &lt;/div&gt; &lt;/li&gt; &lt;li id='item2'&gt; item2 &lt;div class='dynamic-content' style='background:green;'&gt; Some content. &lt;/div&gt; &lt;/li&gt; &lt;li id='item3'&gt; item3 &lt;div class='dynamic-content' style='background:red;'&gt; Some content. &lt;/div&gt; &lt;/li&gt; &lt;li id='item4'&gt; item4 &lt;div class='dynamic-content' style='background:orange;'&gt; Some content. &lt;/div&gt; &lt;/li&gt; &lt;/ul&gt; &lt;ul class='mylist2'&gt; &lt;li&gt; item1 &lt;/li&gt; &lt;li&gt; item2 &lt;/li&gt; &lt;li&gt; item3 &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p><strong>CSS:</strong></p> <pre><code>.container {width:500px;padding:5px;} .mylist1{margin:0px 0px 5px 0px;} .mylist1 li, .mylist2 li {display:inline-block;cursor:pointer;padding:3px;border:solid 1px black;} .dynamic-content {display:none;left:55px; margin-top:10px;position:absolute;padding:5px;border:solid 2px grey;color:#dedede;font-weight:bold;} #item1:hover &gt; div.dynamic-content {display:block;} #item1:hover {margin-bottom:40px;} #item2:hover &gt; div.dynamic-content {display:block;} #item2:hover {margin-bottom:40px;} #item3:hover &gt; div.dynamic-content {display:block;} #item3:hover {margin-bottom:40px;} #item4:hover &gt; div.dynamic-content {display:block;} #item4:hover {margin-bottom:40px;} </code></pre>
    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