The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS need a background trick Re: need a background trick


Well, without digging through your css some more, by setting the height to 100% you are setting it to the height of the viewport, so when you scroll down this element retains its height – i.e. the height of the viewport. Since you have positioned it absolutely it moves up with the page – it is stuck to the top of the page.

That’s why it is happening, you’re better off finding a way to get the styling right without presentational only divs or other elements.