Explanation:
I have a page with a content div that will change height. When the div is small I’d like a nice gradient fade to the background color. As the div grows in height it should push the gradient further down until it is off the page.
This example works properly, however I want to know if I can do this without using position:fixed on the gradient div. The reason that I don’t want to use fixed positioning is because the above example looks strange on the iPad when you go to scroll the page up and down. Everything moves except the gradient so it makes the page look broken.
Is there any way to structure my example without using fixed positioning?
Thanks!
Simply adjust the height of elements and change
overflowofbodyand#content(example):