The website itself occupies the entire width and height of the page, and scrolling is achieved using a container that has overflow: scroll
set.
UPDATE
The .grid
element inside the absolutely positioned .container
now controls the overflow settings.
UPDATE #2
In addition to the jScrollPane
, by setting the body to 100% width and height and positioning a container with overflow set to scroll, you can eliminate any bouncing effect.
UPDATE #3
Refer to the provided code snippet below (you may need to create a separate HTML file due to how SO displays snippets). No bouncing should occur.
* { margin:0; padding:0; }
html,
body { width: 100%; height: 100%; overflow:hidden;}
body>div { height: 50vh; overflow: auto; padding: 10px; background: #000; position: absolute; width: 100px; top: 100px; left: 100px;}
body>div>div { height: 1000px; background: #0f0;}
<div>
<div>scrollable content</div>
</div>