How may I do the trick to scroll outside of the div and action will be assigned to the fixed div with hidden overflow in my case is #scrollable_content.
HTML
<div id="container">
<div id="header">Header</div>
<div id="scrollable_content">
Very long content<br />
Very long content<br />
...
Very long content<br />
Very long content<br />
</div>
<div id="footer">Footer</div>
CSS
html, body {
height:100%;
margin: 0;
padding: 0;
overflow: hidden;
}
div { margin: 0; padding: 0;}
div#header{position:absolute;top:0;width:100%;border:1px solid black;}
div#footer{position:absolute; bottom:0; width:100%; border:1px solid black;}
div#scrollable_content {
height: 300px;
overflow-y:auto;
position: static;
border: 1px solid green;
margin: 150px;
}
This is the example http://jsfiddle.net/gtyBn/
This code will do the trick, although you may need to adjust how the handler works a bit. Most of this code comes from http://www.adomas.org/javascript-mouse-wheel/, although I did modify the handle function to fit your needs.