javascript - Skrollr & Z-index -


i've got bit of issue skrollr & z-index.

http://i.imgur.com/whcvihv.png

i'm trying have picture @ top go underneath blog post.
can't life of me work out why, no matter where/how apply z-index (i assume that's should doing) image sits above post.
i've tried can think of, putting inside divs, inside css...
can make go underneath blog post putting post in skrollr div, run lots of issues line height.
i've stripped failed z-index attempts out, should 'conflict free' of old, stupid code.

http://jsfiddle.net/8fb4c/ (not 100% sure correctly done)
https://github.com/pxlprfct/blog-so-question

<div id="skrollr-body">         <div id="test"              data-0="top:0px;"             data-1000="top: 400px;" >            <img src="apple.jpg" alt="">         </div>     </div>      <article>         <h1>             hi there helpful person!         </h1>         <p>              hi there, i've been trying, , failing, thought reasonably simple thing.         </p>         <p>             want picture stay is, (don't worry horrible aspect ratio , how looks crushed, i'm fixing after) , 'blog', article overlap it.         </p>         <p>             i've been pratting around z-index , have done pretty can think of, image still persists scroll on top of text (rather underneath).         </p>         <p>             have tried few sketchy things worked, didn't work well. think i'm missing mega obvious, anyways. being awesome :)         </p>         <p>             lorem ipsum dolor sit amet, consectetur adipisicing elit. deserunt earum eum recusandae accusantium porro facere vero nulla delectus. adipisci, omnis velit molestias nemo expedita! ad, enim similique placeat rerum. libero.         </p>         <p>             lorem ipsum dolor sit amet, consectetur adipisicing elit. maiores, fuga eius ipsa alias repudiandae itaque neque totam veniam ut minus dignissimos eveniet dicta unde quos enim possimus optio nihil omnis. lorem ipsum dolor sit amet, consectetur adipisicing elit. placeat, magni est officia quis vitae veritatis doloribus laudantium corporis doloremque ratione ut ullam voluptatibus numquam quos optio voluptas veniam corrupti repellat. lorem ipsum dolor sit amet, consectetur adipisicing elit. ad, provident, maxime beatae ea distinctio aperiam dicta ipsa soluta consequatur eius explicabo cumque possimus iure temporibus laudantium eveniet et ex placeat.         </p>         <p>             lorem ipsum dolor sit amet, consectetur adipisicing elit. incidunt, quidem sint labore saepe explicabo aspernatur sunt vero quos minima nesciunt velit et debitis est accusantium eveniet dolorum sed quibusdam voluptate!         </p>     </article> 

adding position: fixed , tweaking z-index -1 trick. have set top , left 0, that's secondary:

#test {     position: fixed;     top: 0;     left: 0;     z-index: -1; } 

jsfiddle:
http://jsfiddle.net/8fb4c/1/


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -