Hi,

I recently visited builditwith.me(awesome site). I noticed when i scrolled down the page, the page is still the div element scrolls. I was wondering how could it be done.

I tried making the div(overflow property to auto), it adds a scrollbar to the div.

I appreciate any help.

Thanks.

1 answer

danwellman 5600
2
points

Both the header and the footer on that site are set to position:fixed so they will always maintain their position. The whole page is scrolling, it just looks as if it is the inner div due to the fixed position of the header and footer

Answered almost 6 years ago by danwellman