Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>That's weird, for me it works correctly (only you forgot the first <code>&lt;</code> tags for your item divs)</p> <ul> <li>If you want a clickable entire div => change <code>&lt;div class="item"&gt;</code> to <code>&lt;a class="item"&gt;</code></li> <li>If you want a clickable image inside div => wrap a tags around the img</li> <li>If you want a clickable text inside div => wrap a tags around <code>&lt;span class="space"&gt;</code></li> </ul> <p>If it doesn't work, you've probably made a typing mistake, because in this test: <a href="http://jsbin.com/apuwal/2/edit" rel="nofollow">http://jsbin.com/apuwal/2/edit</a> , wherever I wrap the anchor tags, it works.</p> <p><strong>EDIT:</strong> Ah I got you now. I re-tested the code with a function alerting the href of a link when clicking on it. After some searching, it turned out, you have to scrap the <code>position: absolute;</code> from your classes <code>.space</code> (twice!) &amp; <code>.item</code>. <a href="http://jsbin.com/apuwal/7/edit" rel="nofollow">http://jsbin.com/apuwal/7/edit</a></p> <p>This is because absolute positioning ignores the presence of other elements, and so your elements will all stack up at the same position and only one link will be clickable. If you wish to keep the position of your items absolute, you will either have to:</p> <ul> <li>set different margins for your elements so they don't overlap</li> <li>Use keyframes (dunno if this is possible, never tried) to change the z-index of the item with opacity > 0.5 or so</li> <li>Set your items to <code>display: none;</code> when they finish fading out. (through Javascript/ jQuery)</li> <li>Give the hidden elements a different margin when they fade out. </li> </ul> <p>I know CSS sliders/faders are pretty sophisticated now, but the way I see it right now, the easiest solution would still be javascript</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. 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