HTML code of the page

<body> <div class="wrapper"> </div> </body> 

CSS

 body { background: #000 url(../images/bg_main.jpg) top center repeat-x; } .wrapper { background: url(../images/bg_wrapper.png) top center no-repeat; } 

How can I add a background scrolling in a wrapper diva? jQuery parallax effect plugins offer too complex effects, and I just need to scroll the background in a diva.

    1 answer 1

    jsfiddle

    update http://jsfiddle.net/XuKcx/

    update 2 http://jsfiddle.net/383NF/

    • So something is not working. And I just need to add scrolling from the top down. - Heidel
    • jsfiddle.net/L2HgU And in chrome and ff works. Scroll from top to bottom. - vkovalchuk88
    • And how to make the background spin in a circle - go down and go on top? and now he just goes down and that's it. - Heidel
    • Thank you, but it’s not that either (it’s necessary to go downstairs, and leave again from above, and so on in a circle ( - Heidel 5:44