How to set the scroll height dynamically?

aRn1s

New Member
I have a div which has a height of 1200px and a width of the browser window. Just below that div I have another div with a height of 1000px. Now at the moment when scrolling down you will be able to scroll until the end of the second div. What I would like is to set the scroll height, so for example I would like to say you should only be able to scroll for 1200px. That way my second div would not be visible to the visitor. Is there some way to achieve this with JQuery?I uploaded a picture emphasizing my problem:
z9fBm.jpg
 
Back
Top